]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/install.sh
Merge pull request #3706 from shtrom/fix/gnu-make-bash
[github/wallabag/wallabag.git] / scripts / install.sh
old mode 100644 (file)
new mode 100755 (executable)
index 7a1f02b..62a46f4
@@ -1,11 +1,11 @@
-#! /usr/bin/env bash
+#!/usr/bin/env bash
 # You can execute this file to install wallabag
 # eg: `sh install.sh prod`
 
 COMPOSER_COMMAND='composer'
 
-DIR="${BASH_SOURCE%/*}"
-if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
+DIR="${BASH_SOURCE}"
+if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
 . "$DIR/require.sh"
 
 ENV=$1