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
Loading
Loading
Loading
Loading
+0 −15
Original line number Diff line number Diff line
@@ -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