edit script
This commit is contained in:
parent
2ba3ff1f5b
commit
701f1f4bf9
|
|
@ -34,6 +34,13 @@ if ! [ -z "$FIRST" ]; then
|
|||
$EDITOR "$1"
|
||||
exit
|
||||
fi
|
||||
SEARCH="$(fd "$CONFIG" "$NIX" -p1)"
|
||||
if [ -n "$SEARCH" ]; then
|
||||
rm "$FIRST"
|
||||
ln -s "$SEARCH" "$FIRST"
|
||||
$EDITOR "$1"
|
||||
exit
|
||||
fi
|
||||
echo "not symlinkable"
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue