Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Change directory rather than failing
Browse files Browse the repository at this point in the history
Change directory to the tools directory rather than failing. This
doesn't affect the current directory the user is in

See alphagov/stagecraft#292
  • Loading branch information
timmow committed Jan 30, 2015
1 parent 0e8571a commit 762540e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/replicate-db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ if [ "$(hostname)" == "development-1" ]; then
fi

if [ "$(basename $(pwd))" != 'tools' ]; then
echo "This script should be run from the backdrop/tools directory!"
exit
cd $(dirname $0)
fi


Expand Down

0 comments on commit 762540e

Please sign in to comment.