aboutsummaryrefslogtreecommitdiffstats
path: root/create-file
diff options
context:
space:
mode:
Diffstat (limited to 'create-file')
-rwxr-xr-xcreate-file8
1 files 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