]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/install.sh
Fix documentation wording for matches/notmatches tagging rules
[github/wallabag/wallabag.git] / scripts / install.sh
index 7a1f02bd80888c65fe7c97a2c33cc3e7346bd110..62a46f4fb60f8100b6228cfcc0a28d6f0ff3ec23 100644 (file)
@@ -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