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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top