From 708ceea5e5a504fb886144e4e74dc2b22ecdbf3d Mon Sep 17 00:00:00 2001 From: Olav Vitters Date: Sat, 25 Jul 2020 14:43:32 +0200 Subject: create-file: ShellCheck: fix quoting issues --- create-file | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/create-file b/create-file index d116650..4cda1b2 100755 --- a/create-file +++ b/create-file @@ -22,10 +22,10 @@ owner=$4 # owner of the file group=$5 # group of the file mode=$6 # mode of the file -if [ ! -f $file ]; then - touch $file - chown $owner:$group $file - chmod $mode $file +if [ ! -f "$file" ]; then + touch "$file" + chown "$owner:$group" "$file" + chmod "$mode" "$file" fi # create-file ends here -- cgit v1.2.1