summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2017-06-02 13:43:40 +0200
committerErich Eckner <git@eckner.net>2017-06-02 13:43:40 +0200
commit2fd26ea12eca52c3724e16688d811195072821ea (patch)
tree94adb94fc02a7ded3d60f8ff14562b5f9bba8b16 /bin
parent491b88db9ef674ce212bb52bcf389860b37f413f (diff)
downloadbuilder-2fd26ea12eca52c3724e16688d811195072821ea.tar.xz
bin/common-functions: style
Diffstat (limited to 'bin')
-rwxr-xr-xbin/common-functions10
1 files changed, 3 insertions, 7 deletions
diff --git a/bin/common-functions b/bin/common-functions
index 9e3eeeb..4e875f9 100755
--- a/bin/common-functions
+++ b/bin/common-functions
@@ -137,11 +137,7 @@ find_git_repository_to_package_repository() {
# return if package - of given repository and revisions - is [locked or broken or blocked]
package_locked_broken_or_blocked() {
- if [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ] ||
- [ -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ] ||
- [ -f "${work_dir}/package-states/$1.$2.$3.$4.blocked" ]; then
- return 0
- else
- return 1
- fi
+ [ -f "${work_dir}/package-states/$1.$2.$3.$4.locked" ] || \
+ [ -f "${work_dir}/package-states/$1.$2.$3.$4.broken" ] || \
+ [ -f "${work_dir}/package-states/$1.$2.$3.$4.blocked" ]
}