AutoYADM commit: 2025-07-18 18:05:11

This commit is contained in:
Daniel Fichtinger 2025-07-18 18:05:11 -04:00
parent bb0fb275a6
commit 360560fd2b

View file

@ -49,7 +49,15 @@ provide-module local-kakrc %—
echo "fail local_kakrc_trusted not found!" echo "fail local_kakrc_trusted not found!"
exit 1 exit 1
fi fi
printf '%s\n' "$arg">"$kak_opt_local_kakrc_trusted" temp="$(mktemp)"
touch "$temp"
if grep -vxF "$arg" "$kak_opt_local_kakrc_trusted" >"$temp"; then
mv -f "$temp" "$kak_opt_local_kakrc_trusted"
else
notify-send "this runs"
echo "info -title 'local-kakrc' 'No such trusted directory!'"
rm "$temp" 2>/dev/null
fi
} }
} }