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
This commit is contained in:
Michael Schröder 2020-05-04 14:54:57 +00:00 committed by Git OBS Bridge
parent 463391a814
commit 58c6ef4046
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon May 4 13:11:34 UTC 2020 - Dominique Leuenberger <dimstar@opensuse.org>
- Update rpmconfigcheck: Remove bashism and use /bin/sh instead of
/bin/bash.
-------------------------------------------------------------------
Tue Apr 14 11:50:49 CEST 2020 - mls@suse.de

View File

@ -1,4 +1,4 @@
#! /bin/bash
#! /bin/sh
# Copyright (c) 2002 SUSE GmbH Nuernberg, Germany.
#
# Author: Michael Schroeder <feedback@suse.de>
@ -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