![]() |
index : drakx | |
Mageia Installer and base platform for many utilities | Thierry Vignaud [tv] |
summaryrefslogtreecommitdiffstats |
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 |