modified error handling methods
[feisty_meow.git] / scripts / rev_control / compact_git.sh
index c1a22ef0b5c45d41cfcddd3764aa61ed88a97d5d..5d32cc6d7617cbabee79327f1f4ec27250f2f6e2 100644 (file)
@@ -12,18 +12,18 @@ if [ -z "$prune_dir" ]; then
   prune_dir="$(pwd)"
 fi
 pushd "$prune_dir" &>/dev/null
-test_or_die "changing to directory: $prune_dir"
+exit_on_error "changing to directory: $prune_dir"
 
 echo "cleaning git repo in directory $(pwd)"
 
 git fsck --full
-test_or_die "git fsck"
+exit_on_error "git fsck"
 
 git gc --prune=today --aggressive
-test_or_die "git gc"
+exit_on_error "git gc"
 
 git repack
-test_or_die "git repack"
+exit_on_error "git repack"
 
 popd &>/dev/null