سؤال

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