]> Nutra Git (v2) - gamesguru/git-remote-gcrypt.git/commitdiff
Use set -u (no unset vars)
authorroot <root@localhost>
Sat, 15 Dec 2012 08:37:51 +0000 (13:37 +0500)
committerroot <root@localhost>
Sat, 15 Dec 2012 08:37:51 +0000 (13:37 +0500)
git-remote-gcrypt

index 60a99a7f0707e78ae389fbba53d15f5e9238df52..a70b0c9fa532791b1da28fc4d3f4f50ea94f532e 100755 (executable)
@@ -6,8 +6,8 @@
 #
 # See README
 
-#set -x
 set -e
+set -u
 
 Did_find_repo=  # yes for connected, no for no repo
 Localdir="${GIT_DIR:=.git}/remote-gcrypt"
@@ -514,7 +514,7 @@ repack_if_needed()
        setvar "$3" no
        isnonnull "$Packlist" || return 0
 
-       if isnonnull "$GCRYPT_FULL_REPACK"
+       if isnonnull "${GCRYPT_FULL_REPACK:-}"
        then
                Keeplist=
                Repack_limit=1