]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/dev.sh
Merge pull request #3783 from wallabag/issue-3780
[github/wallabag/wallabag.git] / scripts / dev.sh
old mode 100644 (file)
new mode 100755 (executable)
index fa3b2d5..0703ced
@@ -1,11 +1,11 @@
-#! /usr/bin/env bash
+#!/usr/bin/env bash
 # You can execute this file to install wallabag dev environment
 # eg: `sh dev.sh`
 
 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"
 
 $COMPOSER_COMMAND install