clipmenu: Explicitly handle no $cache_file case

This commit is contained in:
Chris Down 2020-10-17 00:58:20 +01:00
parent 8538e01e5c
commit 764984c982

View file

@ -28,6 +28,10 @@ EOF
exit 0
fi
if ! [[ -f "$cache_file" ]]; then
printf '%s\n' 'No cache file yet, did you run clipmenud?'
exit 2
fi
# Blacklist of non-dmenu launchers
launcher_args=(-l "${CM_HISTLENGTH}")