문제

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