diff --git a/clipmenud b/clipmenud index 3f0e950..3c4d27b 100755 --- a/clipmenud +++ b/clipmenud @@ -190,6 +190,12 @@ while true; do cache_file_output="$(date +%s%N) $first_line" filename="$cache_dir/$(cksum <<< "$first_line")" + + # Recover without restart if we deleted the entire clip dir. + # It's ok that this only applies to the final directory. + # shellcheck disable=SC2174 + mkdir -p -m0700 "$cache_dir" + debug "Writing $data to $filename" printf '%s' "$data" > "$filename"