diff options
author | Romain GÉRARD | 2018-06-20 12:56:27 +0200 |
---|---|---|
committer | Romain GÉRARD | 2018-06-20 12:56:27 +0200 |
commit | fe71f2b61e7c59d22a60cd01ccfcf5c72b87d8e5 (patch) | |
tree | e682ad186594a39e23081a55e0f19da27bb2caf3 /PKGBUILD | |
parent | e79e037d7d77f762ba6f98aee1b59b684b54219a (diff) | |
download | aur-fe71f2b61e7c59d22a60cd01ccfcf5c72b87d8e5.tar.gz |
test
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -19,13 +19,16 @@ conflicts=("rofi-greenclip-beta") replaces=("rofi-greenclip-beta") backup=() options=('!strip') -install= source=("https://github.com/erebe/greenclip/releases/download/3.0/greenclip") noextract=() sha256sums=("a56cbba8e60e972e9db20757554db344de912ff9e7cd72e76d542796b9fa43ed") package() { - kill -9 "$(pidof greenclip)" || test 1 + pid_greenclip="$(pidof greenclip)" + if [ -n "$pid_greenclip" ]; then + kill -9 "$(pidof greenclip)" || test 1 + fi + rm -rf ~/.config/greenclip.cfg ~/.cache/greenclip.* install -Dm 755 greenclip "$pkgdir/usr/bin/greenclip" } |