Skip to content

Commit 1599572

Browse files
John Hawthornradar
authored andcommitted
Remove bashisms, fix shebangs
* Remove `function`: Allows ubuntu users to `sh build.sh` * Ensure shebangs exist on first line of scripts Fixes spree#3803
1 parent dbb510f commit 1599572

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
#!/bin/sh
2+
13
set -e
24

35
# Switching Gemfile
4-
function set_gemfile(){
6+
set_gemfile(){
57
echo "Switching Gemfile..."
68
export BUNDLE_GEMFILE="`pwd`/Gemfile"
79
}

lib/sandbox.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
#!/bin/sh
12
# Used in the sandbox rake task in Rakefile
2-
#!/bin/bash
33

44
rm -rf ./sandbox
55
bundle exec rails new sandbox --skip-bundle

0 commit comments

Comments
 (0)