]> Pileus Git - ~andy/sunrise/commitdiff
Make review script more particular about the directory from which it is run.
authorNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Wed, 12 Oct 2011 02:47:58 +0000 (02:47 +0000)
committerNathan Phillip Brink (binki) <ohnobinki@ohnopublishing.net>
Wed, 12 Oct 2011 02:47:58 +0000 (02:47 +0000)
svn path=/sunrise/; revision=12457

scripts/review

index 0929b22a4feae00033fe056c5039e4727084d84d..cc19f0e7a495ee3b3ef2b96d5ce96e09c875e921 100755 (executable)
@@ -93,7 +93,7 @@ while [[ $# > 0 ]] ; do
        esac
 done
 
-cd sunrise
+cd sunrise || { eerror "You must run this script from the top level of the sunrise subversion repository."; exit 1; }
 LC_ALL="C" ls -d *-* > profiles/categories
 if [[ $(svn diff profiles/categories) ]]; then
        svn diff profiles/categories | if [[ "$opt_quiet" == "0" ]] ; then less; else cat; fi