summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2016-06-06 20:36:39 -0700
committerMichael Forney <mforney@mforney.org>2016-06-06 20:38:54 -0700
commitdac3b279e368a0ae06c1fc6f800b6f55e396bb32 (patch)
tree3b37875d7df45719a2b50271e7a09d1733b81098 /scripts
parent8711f622cc62ec92fb4a34809a989de03a967ffa (diff)
Fix special permission handling
Diffstat (limited to 'scripts')
-rw-r--r--scripts/hash.rc6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/hash.rc b/scripts/hash.rc
index e33b5682..5f894a6b 100644
--- a/scripts/hash.rc
+++ b/scripts/hash.rc
@@ -12,10 +12,12 @@ fn checkstatus {}
hash=`{
switch($mode) {
- case 120???
+ case 12????
printf %s $1 | git -C $repo hash-object -w --stdin
- case 100???
+ case 10????
git -C $repo hash-object -w --stdin <$1
+ case *
+ status=1
}
}
checkstatus