From: Carl Worth Date: Sun, 5 Jul 2020 18:10:15 +0000 (-0700) Subject: Fix an accidental case of a ".nogit" literal X-Git-Url: https://git.cworth.org/git?p=nogit;a=commitdiff_plain;h=11c771aa4ded3685b229907de4dcba5beee76b52 Fix an accidental case of a ".nogit" literal We have the NOGIT_DIR variable to hold the ".nogit" string. Repeating the string in the error message here set up some fragility if the variable's value were ever to change in the future. --- diff --git a/nogit b/nogit index 16cd18f..102b8c7 100755 --- a/nogit +++ b/nogit @@ -59,7 +59,7 @@ nogit_clone() url="$1" if [ -e $NOGIT_DIR ]; then - echo "Error: .nogit already exists. Cowardly refusing to re-clone." + echo "Error: $NOGIT_DIR already exists. Cowardly refusing to re-clone." return 1 fi