From 58c6ef4046b72e9fa14198e146ab2e2bec53decea95423c456e17ca3f44ca28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Schr=C3=B6der?= Date: Mon, 4 May 2020 14:54:57 +0000 Subject: [PATCH] Accepting request 800061 from home:dimstar:Factory - Update rpmconfigcheck: Remove bashism and use /bin/sh instead of /bin/bash. OBS-URL: https://build.opensuse.org/request/show/800061 OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=543 --- rpm.changes | 6 ++++++ rpmconfigcheck | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/rpm.changes b/rpm.changes index 521e1f8..25ed389 100644 --- a/rpm.changes +++ b/rpm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 4 13:11:34 UTC 2020 - Dominique Leuenberger + +- Update rpmconfigcheck: Remove bashism and use /bin/sh instead of + /bin/bash. + ------------------------------------------------------------------- Tue Apr 14 11:50:49 CEST 2020 - mls@suse.de diff --git a/rpmconfigcheck b/rpmconfigcheck index 4863961..31f076f 100644 --- a/rpmconfigcheck +++ b/rpmconfigcheck @@ -1,4 +1,4 @@ -#! /bin/bash +#! /bin/sh # Copyright (c) 2002 SUSE GmbH Nuernberg, Germany. # # Author: Michael Schroeder @@ -15,7 +15,7 @@ if test -s $packages -a \( ! -e $configcheckfile -o -s $configcheckfile -o ! $pa test -e $configcheckfile && mv -f $configcheckfile $configcheckfile.old rpm -qalc | sort | while read line; do for suffix in new orig save; do - [[ -e "${line}.rpm${suffix}" ]] && echo "${line}.rpm${suffix}" + [ -e "${line}.rpm${suffix}" ] && echo "${line}.rpm${suffix}" done done > $configcheckfile else