Skip to content

Commit

Permalink
Properly source require.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
baurmatt committed Mar 12, 2019
1 parent a48ff25 commit 7c553a6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
10 changes: 7 additions & 3 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@
# eg: `sh dev.sh`

COMPOSER_COMMAND='composer'
REQUIRE_FILE='scripts/require.sh'

DIR="${BASH_SOURCE}"
if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
. "$DIR/require.sh"
if [ ! -f "$REQUIRE_FILE" ]; then
echo "Cannot find $REQUIRE_FILE"
exit 1
fi

. "$REQUIRE_FILE"

$COMPOSER_COMMAND install
php bin/console wallabag:install
Expand Down
10 changes: 7 additions & 3 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,14 @@ if [ "$IGNORE_ROOT" -eq 0 ] && [ "$EUID" == "0" ]; then
fi

COMPOSER_COMMAND='composer'
REQUIRE_FILE='scripts/require.sh'

DIR="${BASH_SOURCE}"
if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
. "$DIR/require.sh"
if [ ! -f "$REQUIRE_FILE" ]; then
echo "Cannot find $REQUIRE_FILE"
exit 1
fi

. "$REQUIRE_FILE"

TAG=$(git describe --tags $(git rev-list --tags --max-count=1))

Expand Down
10 changes: 7 additions & 3 deletions scripts/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ set -e
set -u

COMPOSER_COMMAND='composer'
REQUIRE_FILE='scripts/require.sh'

DIR="${BASH_SOURCE}"
if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi
. "$DIR/require.sh"
if [ ! -f "$REQUIRE_FILE" ]; then
echo "Cannot find $REQUIRE_FILE"
exit 1
fi

. "$REQUIRE_FILE"

rm -rf var/cache/*
git fetch origin
Expand Down

0 comments on commit 7c553a6

Please sign in to comment.