]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/dev.sh
fix path for in install scripts
[github/wallabag/wallabag.git] / scripts / dev.sh
index fa3b2d5d5de32509e2e4160fd7a8b64ad9407c7f..233830e7c5d79ba4f19abe71e151fb4f31cc3d1b 100644 (file)
@@ -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