ENH make rofi device error more obvious

This commit is contained in:
Nathan Dwarshuis 2021-04-03 11:18:09 -04:00
parent bb911ffda8
commit 830e471cb5
1 changed files with 5 additions and 2 deletions

View File

@ -7,5 +7,8 @@ shift
alias="gnupg"
rofi-dev -c "$XDG_CONFIG_HOME/rofi/devices.yml" -m "$alias" \
&& "$bin" "$@" || echo "Could not mount $alias"
if rofi-dev -c "$XDG_CONFIG_HOME/rofi/devices.yml" -m "$alias"; then
"$bin" "$@"
else
echo "Could not mount $alias"
fi