diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-15 23:28:53 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-15 23:28:53 +0300 |
commit | 0fb4ee5b98e1d06ed1194c6264fd3c6e781d9384 (patch) | |
tree | d5bbdfc2636554907fe14a26ca4d2046c560deef /%HOME%/.bash_utils/file.sh | |
parent | add branch_eol_normalized (diff) | |
download | linux-home-0fb4ee5b98e1d06ed1194c6264fd3c6e781d9384.tar.gz linux-home-0fb4ee5b98e1d06ed1194c6264fd3c6e781d9384.zip |
bugfix
Diffstat (limited to '')
-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" ) |