]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
fix path for in install scripts
authorFoxMaSk <foxmaskhome@gmail.com>
Sun, 30 Oct 2016 21:38:38 +0000 (22:38 +0100)
committerFoxMaSk <foxmaskhome@gmail.com>
Sun, 30 Oct 2016 21:38:38 +0000 (22:38 +0100)
scripts/dev.sh
scripts/install.sh
scripts/update.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
index 7a1f02bd80888c65fe7c97a2c33cc3e7346bd110..e131929ce74dee0523564365508dbf93caec2c58 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
index 45e93f3634eb09609852e5fd205a036ad4359ba2..6fff8a723624b6cf87bc0b6ce273f6ed256e81f2 100644 (file)
@@ -1,11 +1,11 @@
-#! /usr/bin/env bash
+#!/usr/bin/env bash
 # You can execute this file to update wallabag
 # eg: `sh update.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