Commit a7aa81b8 authored by claes's avatar claes

chmod on dbs-files were in wrong position

parent 4139cce2
...@@ -23,14 +23,14 @@ merge_dir_func() ...@@ -23,14 +23,14 @@ merge_dir_func()
if [ $todir/$file -ot $fromdir/$file ]; then if [ $todir/$file -ot $fromdir/$file ]; then
echo "Copy $fromdir/$file" echo "Copy $fromdir/$file"
cp $fromdir/$file $todir cp $fromdir/$file $todir
if [ ${file##*.} = "dbs" ]; then
# Change access on dbsfiles
chmod a+w $todir/$file
fi
fi fi
else else
echo "Copy $fromdir/$file" echo "Copy $fromdir/$file"
cp $fromdir/$file $todir cp $fromdir/$file $todir
if [ ${file##*.} = "dbs" ]; then
# Change access on dbsfiles
chmod a+w $todir/$file
fi
fi fi
fi fi
done done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment