fix: newdracut.sh
./newdracut.sh: line 54: syntax error near unexpected token `(' ./newdracut.sh: line 54: ` subject=$(grep '^Subject: ' +(0)$i.patch | head -1)' Related: #2157082
This commit is contained in:
parent
a08de0a6fa
commit
c7926d0b86
@ -51,7 +51,7 @@ if rpm -ivh --define "_srcrpmdir $PWD" --define "_specdir $PWD" --define "_sourc
|
||||
echo "* $(LANG='C' date '+%a %b %d %Y') $(git config user.name) <$(git config user.email)> - ${new_version}-${new_release_full}"
|
||||
|
||||
for ((i=old_release; i<new_release; i++)); do
|
||||
subject=$(grep '^Subject: ' +(0)$i.patch | head -1)
|
||||
subject=$(grep -E '^Subject: ' "`printf "%04d" $i`.patch" | head -1)
|
||||
subject="${subject#*\[PATCH\]}"
|
||||
|
||||
if [ -n "$subject" ] && [ -z "$(echo $subject | grep '^ci: ')" ]; then
|
||||
@ -73,7 +73,7 @@ if rpm -ivh --define "_srcrpmdir $PWD" --define "_specdir $PWD" --define "_sourc
|
||||
|
||||
msg="Resolves: $(
|
||||
for ((i=old_release; i<new_release; i++)); do
|
||||
resolves=$(grep '^Resolves: ' +(0)$i.patch | head -1)
|
||||
resolves=$(grep '^Resolves: ' "`printf "%04d" $i`.patch" | head -1)
|
||||
if [ -n "$resolves" ]; then
|
||||
echo "${resolves#Resolves: }"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user