zsh: fix c
alias
This commit is contained in:
@@ -168,7 +168,7 @@ in
|
|||||||
}
|
}
|
||||||
function deref() {
|
function deref() {
|
||||||
# convert a symlink into a plain file of the same content
|
# 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"
|
cp --dereference "$1" "$1.deref"
|
||||||
mv -f "$1.deref" "$1"
|
mv -f "$1.deref" "$1"
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user