From fd81499c83a616ff4fecfdd44fd6ca332c364b53 Mon Sep 17 00:00:00 2001 From: Ohad Livne Date: Fri, 18 Jul 2025 16:28:59 +0300 Subject: [PATCH] Handle missing argument in strict mode --- .local/bin/take-screenshot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/take-screenshot b/.local/bin/take-screenshot index f2cf7c2..32f4eaf 100755 --- a/.local/bin/take-screenshot +++ b/.local/bin/take-screenshot @@ -30,7 +30,7 @@ recording_filename() { echo ~/Pictures/screenshots/recording-"$(ts)".mp4 } -if [ -z "$1" ]; then +if [ -z "${1+exists}" ]; then option=$(listopts | fuzzel --dmenu) else option="$1"