release: move into the base directory earlier
authorFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 10 Dec 2012 10:34:50 +0000 (11:34 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Mon, 10 Dec 2012 13:48:23 +0000 (14:48 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
release/release.bash

index dd6d1ff..a91f34e 100755 (executable)
@@ -339,6 +339,8 @@ declare scriptDir="$(dirname "${script}")"
 declare baseDir="$(dirname "${scriptDir}")"
 unset script
 
+cd "${baseDir}"
+
 
 #
 # Check the number of arguments
@@ -352,7 +354,6 @@ fi
 #
 # Go into the root of the checkout and check some key files
 #
-cd "${baseDir}"
 if [[ "$(gitIsGitDirectory ".")" == "0" ]] || \
    [[ ! -r ./Makefile.inc ]] || \
    [[ ! -r ./files/olsrd.conf.default.full ]]; then