diff options
Diffstat (limited to '%HOME%/.bash_utils/file.sh')
-rw-r--r-- | %HOME%/.bash_utils/file.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/%HOME%/.bash_utils/file.sh b/%HOME%/.bash_utils/file.sh index 6741067..33f9994 100644 --- a/%HOME%/.bash_utils/file.sh +++ b/%HOME%/.bash_utils/file.sh @@ -29,7 +29,7 @@ swap_files() ( local tmp_path tmp_path="$( mktemp -- "$( dirname -- "$path1" )/XXX" )" - mv "$path1" "$tmp_path" - mv "$path2" "$path1" - mv "$tmp_path" "$path2" + mv -- "$path1" "$tmp_path" + mv -- "$path2" "$path1" + mv -- "$tmp_path" "$path2" ) |