make sure the directory exists

This commit is contained in:
Jacob 2023-06-20 15:14:43 +00:00
parent 817fb0f66e
commit ad6dbee3f7

View file

@ -99,6 +99,7 @@ kill_background_jobs() {
# Avoid clipmenu showing "no cache file yet" if we launched it before selecting
# anything
mkdir -p "$(dirname "$cache_file")"
touch -- "$cache_file"
if [[ $1 == --help ]] || [[ $1 == -h ]]; then