Question

I'm using the stage command of sbt-native-packager to generate a start script for my application. The start-script template uses

#!/bin/bash

to find bash, but I'm on FreeBSD, thus my bash is in /usr/local/bin/bash. Is there a workaround for this that is any more convenient than invoking bash with the script filename as its argument, or editing the script each time it's regenerated?

Était-ce utile?

La solution

The simplest way is to override template. Just put copy of original template with appropriate changes in src/templates. But notice that this feature available only in 0.7.0-M1.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top