zsh: fix c
alias
This commit is contained in:
parent
e695459b40
commit
9ea39799a5
|
@ -168,7 +168,7 @@ in
|
|||
}
|
||||
function deref() {
|
||||
# convert a symlink into a plain file of the same content
|
||||
if [ -L "$1" && -f "$1" ]; then
|
||||
if [ -L "$1" ] && [ -f "$1" ]; then
|
||||
cp --dereference "$1" "$1.deref"
|
||||
mv -f "$1.deref" "$1"
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue
Block a user