diff options
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 16 |
2 files changed, 10 insertions, 8 deletions
@@ -1,7 +1,7 @@ pkgbase = cygnus pkgdesc = RSS reader pkgver = 1.3 - pkgrel = 2 + pkgrel = 3 url = https://github.com/blooser/cygnus arch = x86_64 license = MIT @@ -1,7 +1,7 @@ # Maintainer: Blooser <blooser@protonmail.com> pkgname=cygnus pkgver=1.3 -pkgrel=2 +pkgrel=3 pkgdesc="RSS reader" arch=('x86_64') md5sums=('26cfda2c5b20496debe039d94207404d') @@ -40,13 +40,15 @@ package() { mv $pkgname-$pkgver $pkgname cp -r $pkgname ~/Documents rm -rf $pkgname - if [ ! -f ~/.local/share/applications ]; then + if [ -f ~/.local/share/applications ]; then mkdir ~/.local/share/applications fi echo "${shortcut}" > ~/.local/share/applications/cygnus.desktop - if [ -f ~/.zshrc ]; then - echo "alias cygnus=${applocation}/run.sh" >> ~/.zshrc - else - echo "alias cygnus=${applocation}/run.sh" >> ~/.bashrc - fi + if type "cygnus" > /dev/null; then + if [ -f ~/.zshrc ]; then + echo "alias cygnus=${applocation}/run.sh" >> ~/.zshrc + else + echo "alias cygnus=${applocation}/run.sh" >> ~/.bashrc + fi + fi } |