diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-26 21:13:23 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-09-26 21:20:11 +0200 |
commit | b9587abdcaf5412957f83c2583a4e56b09ba1936 (patch) | |
tree | 7aabe16458d98ec2995f52385c622121b00eddb9 /main/nagios-plugins | |
parent | 3c72e91a4895a78dd66c78211208f3d4bdfe2b16 (diff) | |
download | aports-b9587abdcaf5412957f83c2583a4e56b09ba1936.tar.bz2 aports-b9587abdcaf5412957f83c2583a4e56b09ba1936.tar.xz |
main/nagios-plugins: remove explicit return
Diffstat (limited to 'main/nagios-plugins')
-rw-r--r-- | main/nagios-plugins/APKBUILD | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/main/nagios-plugins/APKBUILD b/main/nagios-plugins/APKBUILD index 12ae6181cc..485d2dc0d2 100644 --- a/main/nagios-plugins/APKBUILD +++ b/main/nagios-plugins/APKBUILD @@ -65,15 +65,14 @@ build() { --with-ps-varlist="procstat,&procpid,&procppid,&procvsz,&procrss,procprog,&pos" \ --with-ps-cols=7 \ --with-ping-command="/bin/ping -c %d %s" \ - --disable-nls \ - || return 1 + --disable-nls make all } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install # Remove plugins that are useless or doesn't work on Alpine. local name; for name in apt flexlm oracle; do @@ -92,7 +91,7 @@ tcp() { mkdir -p "$destdir" local name; for name in tcp $plugins; do - mv "$pkgdir/$_plugins_dir"/check_$name "$destdir"/ || return 1 + mv "$pkgdir/$_plugins_dir"/check_$name "$destdir"/ done } @@ -103,7 +102,7 @@ _plugin() { depends="$pkgname $(eval "echo \$depends_$name")" mkdir -p "$destdir" - mv "$pkgdir/$_plugins_dir"/check_$name* "$destdir"/ || return 1 + mv "$pkgdir/$_plugins_dir"/check_$name* "$destdir"/ if file -bi "$destdir"/* | grep -qw text/x-perl; then depends="$depends perl" |