lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 6c85f9a 2/5: Add an inadvertently omitted 's'


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 6c85f9a 2/5: Add an inadvertently omitted 's'
Date: Thu, 18 Jun 2020 22:42:56 -0400 (EDT)

branch: master
commit 6c85f9a04923bccc459340c0ef1443b039fe0306
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Add an inadvertently omitted 's'
    
    Incidentally added braces to ${variable} expansions, for concinnity.
---
 gwc/foo | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gwc/foo b/gwc/foo
index 8fe88c0..39596aa 100755
--- a/gwc/foo
+++ b/gwc/foo
@@ -20,7 +20,7 @@ do
   user=$(echo "${CHROOT_USERS}" | cut -d' ' -f"${i}")
   if [ -z "$user" ] && [ -z "$uid" ] ; then break; fi
   if [ -z "$user" ] || [ -z "$uid" ] ; then
-    printf 'Problem: both "%s" and "%" must be nonempty.\n' "$user" "$uid"
+    printf 'Problem: both "%s" and "%s" must be nonempty.\n' "${user}" "${uid}"
     break
   fi
   printf '  user %i: name %s; uid %i\n' "$i" "$user" "$uid"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]