*.git.tar) base=${arg%.tar} ;;
*.git.edit) base=${arg%.edit} ;;
*.git) base=${arg} ;;
-*) fail "arg must end in .git[.tar]" ;;
+*) fail "arg must end in .git[.tar|.edit]" ;;
esac
tryat_pre () {
tryat () {
local b="$1"
- if ! test -f "$b.tar" && ! test -f "$b.edit"; then
+ if ! test -f "$b.tar" && ! test -d "$b.edit"; then
return
fi
tryat_pre "$b"