This commit is contained in:
Dict Xiong 2022-05-21 14:51:48 +08:00
parent 1901c3a9ce
commit 861a38255f

View File

@ -141,7 +141,7 @@ create_symlink()
fmt_error "\"$src\" does not exist! aborting this job ..." fmt_error "\"$src\" does not exist! aborting this job ..."
return 1 return 1
fi fi
mkdir -p $(driname "$dest") mkdir -p $(dirname "$dest")
if [ -f "$dest" ]; then if [ -f "$dest" ]; then
if [ "$(readlink $dest)" -ef "$src" ]; then if [ "$(readlink $dest)" -ef "$src" ]; then
return 0 return 0