Build: Introduce shellcheck (#18081)
* Build: introduce shellcheck Fixes #16198
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
_files=$*
|
||||
|
||||
ALL_SIGNED=0
|
||||
|
||||
for file in $_files; do
|
||||
rpm -K "$file" | grep "pgp.*OK" -q
|
||||
if [[ $? != 0 ]]; then
|
||||
if rpm -K "$file" | grep "pgp.*OK" -q; then
|
||||
ALL_SIGNED=1
|
||||
echo $file NOT SIGNED
|
||||
echo "$file" NOT SIGNED
|
||||
else
|
||||
echo $file OK
|
||||
echo "$file" OK
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user