diff options
author | Ting-Wei Lan <lantw44@gmail.com> | 2014-08-16 00:33:27 +0800 |
---|---|---|
committer | Ting-Wei Lan <lantw44@gmail.com> | 2014-08-16 00:33:27 +0800 |
commit | dcff8a66e131e9a6768c79fce450de791f7b90b7 (patch) | |
tree | 15c80d39aadacebc8cea29f4f98e097c5a07d3e6 | |
parent | 56d9e6abc1b16ba15a1a2946a97660b10c5f622a (diff) | |
download | configfile-bash_include-20140816.tar configfile-bash_include-20140816.tar.gz configfile-bash_include-20140816.tar.bz2 configfile-bash_include-20140816.tar.lz configfile-bash_include-20140816.tar.xz configfile-bash_include-20140816.tar.zst configfile-bash_include-20140816.zip |
bash_include: 修正 mvfile 在 symlink 指向目標不存在時的錯誤判斷bash_include-20140816
-rw-r--r-- | bash_include | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_include b/bash_include index 01cfc01..0dafccc 100644 --- a/bash_include +++ b/bash_include @@ -1297,7 +1297,7 @@ function mvfile () local -i i=0 while [ "${arglist[$i]}" ] do - if [ "$nocheck" = "0" ] && [ '!' -e "${arglist[$i]}" ] + if [ "$nocheck" = "0" ] && [ '!' -e "${arglist[$i]}" ] && [ '!' -h "${arglist[$i]}" ] then printf "\e[33mWarning\e[m: ${arglist[$i]} does not exist. (Use -n to override)\n" i=$i+1 |