]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/dev.sh
Fix documentation wording for matches/notmatches tagging rules
[github/wallabag/wallabag.git] / scripts / dev.sh
index 9b89da35faf2aa18ee70408312659f072ecacc7a..0703ced1ef9111ef4c08d055db471fb43f50fad3 100644 (file)
@@ -1,7 +1,13 @@
-#! /usr/bin/env bash
-# You can execute this file to install wallabag dev environmnet
-# eg: `sh install.sh prod`
+#!/usr/bin/env bash
+# You can execute this file to install wallabag dev environment
+# eg: `sh dev.sh`
 
-composer install
+COMPOSER_COMMAND='composer'
+
+DIR="${BASH_SOURCE}"
+if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
+. "$DIR/require.sh"
+
+$COMPOSER_COMMAND install
 php bin/console wallabag:install
 php bin/console server:run