From bb196134705a240c3af4d807b191cb16f54e6dfb Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Wed, 9 Jul 2014 11:03:30 +0000 Subject: replace exit with return in some packages --- main/owncloud/APKBUILD | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'main/owncloud/APKBUILD') diff --git a/main/owncloud/APKBUILD b/main/owncloud/APKBUILD index 91c4fb2ab..e0aca0132 100644 --- a/main/owncloud/APKBUILD +++ b/main/owncloud/APKBUILD @@ -49,14 +49,14 @@ package() { mkdir -p "$pkgdir"${_ocwwwdir} rm -rf config data mv * "$pkgdir"${_ocwwwdir} || exit - ln -s $_occonfdir "$pkgdir"${_ocwwwdir}/config || exit 1 + ln -s $_occonfdir "$pkgdir"${_ocwwwdir}/config || return 1 install -m660 ../owncloud.config.php "$pkgdir"${_occonfdir}/config.php for dir in \ "$pkgdir"${_occonfdir} \ "$pkgdir"${_ocdatadir} \ "$pkgdir"${_ocappsdir}; do - chown -R :www-data $dir || exit 1 - chmod 770 $dir || exit 1 + chown -R :www-data $dir || return 1 + chmod 770 $dir || return 1 done } @@ -85,12 +85,12 @@ plugins() { arch="noarch" pkgdesc="ownCloud 3rdparty plugins" depends="owncloud" - mkdir -p "$subpkgdir"${_ocwwwdir} || exit 1 + mkdir -p "$subpkgdir"${_ocwwwdir} || return 1 mv "$pkgdir"${_ocwwwdir}/3rdparty "$subpkgdir"${_ocwwwdir} } _mv_app() { - mkdir -p "$subpkgdir"${_ocappsdir} || exit 1 + mkdir -p "$subpkgdir"${_ocappsdir} || return 1 mv "$pkgdir"${_ocappsdir}/$1 "$subpkgdir"${_ocappsdir} } -- cgit v1.2.3