on master help sign in
adjust whitespace in shell scripts
commit9224b3c3f04d0757466a4ff6a6e1280ce630c9ff authorThirnearez <thirnearez@localhost> dateFri 6 Oct 2017, 18:31 (9 years ago) parent076cfe2
1 file changed+17−17
manage.sh+17−17
manage.sh+17−17
@@ -25,33 +25,33 @@ install_geckodriver() {
2525 geckodriver -V > /dev/null 2>&1 || NOTFOUND=1
2626 set +e
2727 if [ -z "$NOTFOUND" ]; then
28− return
28+ return
2929 fi
3030 GECKODRIVER_VERSION="v0.18.0"
3131 PLATFORM="`python -c "import six; import platform; six.print_(platform.system().lower(), platform.architecture()[0])"`"
3232 case "$PLATFORM" in
33− "linux 32bit" | "linux2 32bit") ARCH="linux32";;
34− "linux 64bit" | "linux2 64bit") ARCH="linux64";;
35− "windows 32 bit") ARCH="win32";;
36− "windows 64 bit") ARCH="win64";;
37− "mac 64bit") ARCH="macos";;
33+ "linux 32bit" | "linux2 32bit") ARCH="linux32";;
34+ "linux 64bit" | "linux2 64bit") ARCH="linux64";;
35+ "windows 32 bit") ARCH="win32";;
36+ "windows 64 bit") ARCH="win64";;
37+ "mac 64bit") ARCH="macos";;
3838 esac
3939 GECKODRIVER_URL="https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-$ARCH.tar.gz";
4040
4141 if [ -z "$1" ]; then
42− if [ -z "$VIRTUAL_ENV" ]; then
43− echo "geckodriver can't be installed because VIRTUAL_ENV is not set, you should download it from\n $GECKODRIVER_URL"
44− exit
45− else
46− GECKODRIVER_DIR="$VIRTUAL_ENV/bin"
47− fi
42+ if [ -z "$VIRTUAL_ENV" ]; then
43+ echo "geckodriver can't be installed because VIRTUAL_ENV is not set, you should download it from\n $GECKODRIVER_URL"
44+ exit
45+ else
46+ GECKODRIVER_DIR="$VIRTUAL_ENV/bin"
47+ fi
4848 else
49− GECKODRIVER_DIR="$1"
50− mkdir -p -- "$GECKODRIVER_DIR"
49+ GECKODRIVER_DIR="$1"
50+ mkdir -p -- "$GECKODRIVER_DIR"
5151 fi
5252
5353 echo "Installing $GECKODRIVER_DIR/geckodriver from\n $GECKODRIVER_URL"
54−
54+
5555 FILE="`mktemp`"
5656 wget -qO "$FILE" -- "$GECKODRIVER_URL" && tar xz -C "$GECKODRIVER_DIR" -f "$FILE" geckodriver
5757 rm -- "$FILE"
@@ -116,7 +116,7 @@ npm_packages() {
116116 cd -- "$BASE_DIR/searx/static/themes/oscar"
117117 npm install
118118
119− echo '[!] install NPM packages for simple theme'
119+ echo '[!] install NPM packages for simple theme'
120120 cd -- "$BASE_DIR/searx/static/themes/simple"
121121 npm install
122122}
@@ -124,7 +124,7 @@ npm_packages() {
124124grunt_build() {
125125 echo '[!] Grunt build : oscar theme'
126126 grunt --gruntfile "$SEARX_DIR/static/themes/oscar/gruntfile.js"
127− echo '[!] Grunt build : simple theme'
127+ echo '[!] Grunt build : simple theme'
128128 grunt --gruntfile "$SEARX_DIR/static/themes/simple/gruntfile.js"
129129}
130130