changeset 641:c21c35a399d9

common.subr: FIX: Quote ${1-} where it is a directory/path argument
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 27 Sep 2024 14:40:49 +0200
parents b8b07ff189f6
children de090ff199ff
files share/local-bsdtools/common.subr
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/share/local-bsdtools/common.subr	Fri Sep 27 14:36:37 2024 +0200
+++ b/share/local-bsdtools/common.subr	Fri Sep 27 14:40:49 2024 +0200
@@ -466,7 +466,7 @@
     shift $((OPTIND-1))
     OPTIND=1
 
-    _directory=${1-}
+    _directory="${1-}"
     case "${_directory}" in
         '')
             # OK this matches at the root directory