]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - scripts/update.sh
Added require.sh to check if composer is installed
[github/wallabag/wallabag.git] / scripts / update.sh
index 48281210d02e241c441994830f299bb12e2f4124..96a48217f492caea1835323c116162e3bce9fd45 100644 (file)
@@ -1,4 +1,10 @@
 #! /usr/bin/env bash
+# You can execute this file to update wallabag
+# eg: `sh update.sh prod`
+
+DIR="${BASH_SOURCE%/*}"
+if [[ ! -d "$DIR" ]]; then DIR="$PWD"; fi
+. "$DIR/require.sh"
 
 ENV=$1
 TAG=$(git describe --tags $(git rev-list --tags --max-count=1))