mirror of
https://github.com/gitbucket/gitbucket.git
synced 2026-01-04 06:39:58 +01:00
Fixed bashism 'source'
This commit is contained in:
13
README-bashism.md
Normal file
13
README-bashism.md
Normal file
@@ -0,0 +1,13 @@
|
||||
Running `./sbt.sh` emits `./sbt.sh: 2: ./sbt.sh: source: not found`
|
||||
====
|
||||
|
||||
This is due to the usage of `source` within the scripts.
|
||||
|
||||
There are two potential fixes:
|
||||
|
||||
* Change `#!/bin/sh` to `#!/bin/bash`
|
||||
* Change `source` to `.`
|
||||
|
||||
I'm doing the ladder one...
|
||||
|
||||
* `find . -name "*.sh*|xargs -n1 sed -i "s/source /. /"`
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
source ../env.sh
|
||||
. ../env.sh
|
||||
|
||||
cd ../
|
||||
./sbt.sh clean assembly
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
source ../env.sh
|
||||
. ../env.sh
|
||||
ant -f build.xml all
|
||||
|
||||
Reference in New Issue
Block a user