Skip to content

Commit

Permalink
Fix test in updateSCCSVersions; .git is a directory, therefore use -d…
Browse files Browse the repository at this point in the history
… not -f.
  • Loading branch information
eliotmiranda committed Oct 26, 2016
1 parent 7ade4cf commit 361a3cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/updateSCCSVersions
Expand Up @@ -3,7 +3,7 @@
# platforms/Cross/vm/sqSCCSVersion.h to be checked-in so that its version
# info reflects that of the current check-in.

if [ -f `dirname $0`/../.git ]; then
if [ -d `dirname $0`/../.git ]; then
hooks_dir="`git rev-parse --git-dir`/hooks"
mkdir -p $hooks_dir
cp -f $0 $hooks_dir/post-commit
Expand Down

0 comments on commit 361a3cf

Please sign in to comment.