From 11c771aa4ded3685b229907de4dcba5beee76b52 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sun, 5 Jul 2020 11:10:15 -0700 Subject: [PATCH] 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. --- nogit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0