AutoYADM commit: 2025-07-18 18:05:11
This commit is contained in:
parent
bb0fb275a6
commit
360560fd2b
1 changed files with 13 additions and 5 deletions
|
@ -49,7 +49,15 @@ provide-module local-kakrc %—
|
|||
echo "fail local_kakrc_trusted not found!"
|
||||
exit 1
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue