Skip to content
Snippets Groups Projects
Commit 0f8f171a authored by nimrod's avatar nimrod
Browse files

Delete the flatpak_kill shell function.

ElementaryOS now has a new enough Flatpak pacakge that has the kill
command.
parent f3f071df
No related branches found
No related tags found
No related merge requests found
......@@ -303,21 +303,6 @@ match_ssl_pair () {
return "$exitcode"
}
flatpak_kill () {
if [ "$#" -lt 1 ]
then
echo "You must specify application name." >&2
false
else
name="$1"
shift
for pid in $(flatpak ps --columns=application,pid | awk "tolower(\$2) ~ /$name/ {print \$3}")
do
pkill "$@" "$pid"
done
fi
}
# shellcheck disable=SC2120
prune_ssh_sockets () {
{ [ "${1:-}" != '-f' ] && [ "${1:-}" != '--force' ]; } || killall -v ssh || true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment