diff options
Diffstat (limited to 'create-file')
-rwxr-xr-x | create-file | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/create-file b/create-file index 6ae3417..4cda1b2 100755 --- a/create-file +++ b/create-file @@ -1,6 +1,6 @@ #!/bin/sh #--------------------------------------------------------------- -# Project : Mandriva Linux +# Project : Mageia Linux # Module : rpm-helper # File : create-file # Version : $Id$ @@ -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 |