mirror of
https://github.com/sobolevn/git-secret
synced 2024-10-31 21:20:29 +00:00
use 'kill', not 'kill -9' (#379)
This commit is contained in:
parent
cdad4aba37
commit
c4331693f3
@ -67,7 +67,7 @@ function stop_gpg_agent {
|
|||||||
local username
|
local username
|
||||||
username=$(id -u -n)
|
username=$(id -u -n)
|
||||||
ps -wx -U "$username" | gawk \
|
ps -wx -U "$username" | gawk \
|
||||||
'/gpg-agent --homedir/ { if ( $0 !~ "awk" ) { system("kill -9 "$1) } }' \
|
'/gpg-agent --homedir/ { if ( $0 !~ "awk" ) { system("kill "$1) } }' \
|
||||||
> /dev/null 2>&1
|
> /dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user