Handle missing argument in strict mode

This commit is contained in:
Ohad Livne 2025-07-18 16:28:59 +03:00
parent e0c33b01b7
commit fd81499c83
Signed by: libohad-dev
GPG key ID: 34FDC68B51191A4D

View file

@ -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"