qbprof: error out for empty argument

This commit is contained in:
dogeystamp 2024-02-29 13:07:18 -05:00
parent d216c5f92f
commit 2bebabc358
Signed by: dogeystamp
GPG Key ID: 7225FE3592EFFA38

View File

@ -1,4 +1,9 @@
#!/bin/sh
# runs a qutebrowser profile
if [ -z "$1" ]; then
printf "No profile selected.\n" > /dev/stderr
exit 1
fi
qutebrowser --basedir ~/.config/qbprof/"$1"