echo readlink is redundant (#375)

This commit is contained in:
Guido Cella 2019-09-16 19:28:14 +02:00 committed by Luke Smith
parent 40c4b8220b
commit f255cad8e5

View File

@ -23,7 +23,7 @@ do
echo -n "$file" | xclip -selection clipboard &&
notify-send "$file copied to clipboard" & ;;
"Y")
echo -n "$(readlink -f "$file")" | xclip -selection clipboard &&
readlink -f "$file" | xclip -selection clipboard &&
notify-send "$(readlink -f "$file") copied to clipboard" & ;;
"d")
[ "$(printf "No\\nYes" | dmenu -i -p "Really delete $file?")" = "Yes" ] && rm "$file" && notify-send "$file deleted." ;;