From 2bebabc3581c30151738cf132c17f02ecd3caff5 Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 29 Feb 2024 13:07:18 -0500 Subject: [PATCH] qbprof: error out for empty argument --- src/.local/bin/qbprof | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/.local/bin/qbprof b/src/.local/bin/qbprof index d560d13..8649865 100755 --- a/src/.local/bin/qbprof +++ b/src/.local/bin/qbprof @@ -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"