fixed syntax in rofi-umount

This commit is contained in:
Phuntsok Drak-pa
2019-10-24 23:10:01 +02:00
parent f5c0bb387f
commit ce709c7593
2 changed files with 186 additions and 20 deletions

View File

@@ -25,8 +25,7 @@ awk '{print $1}')
test -z "$chosen" && exit 0
sudo -A umount $chosen && \
notify-send "💻 USB unmounting" "$chosen unmounted." -a "dumount" || \
notify-send "💻 USB unmounting" "$chosen unmounting failed." -a "dumount"
notify-send "💻 USB unmounting" "$chosen unmounted." -a "dumount"
end
@@ -36,9 +35,8 @@ set chosen (echo $androids | rofi -dmenu -i -p "Unmount which device?")
test -z "$chosen" && exit 0
sudo -A umount -l $chosen && |
notify-send "🤖 Android unmounting" "$chosen unmounted." -a "dumount" || \
notify-send "🤖 Android unmounting" "$chosen failed to unmount." -a "dumount"
sudo -A umount -l $chosen && \
notify-send "🤖 Android unmounting" "$chosen unmounted." -a "dumount"
end
@@ -49,8 +47,7 @@ set chosen (echo "$cds" | rofi -dmenu -i -p "Unmount which CD?")
test -z "$chosen" && exit 0
sudo -A umount -l $chosen && \
notify-send "💿 CD unmounting" "$chosen unmounted." -a "dumount" || \
notify-send "💿 CD unmounting" "$chosen failed to unmount." -a "dumount"
notify-send "💿 CD unmounting" "$chosen unmounted." -a "dumount"
end