Commit 9c68d3de authored by Vitaly Lipatov's avatar Vitaly Lipatov

spec: use checkbashisms only if it is installed

parent 8549bcc2
...@@ -371,8 +371,7 @@ remove_bashism() ...@@ -371,8 +371,7 @@ remove_bashism()
echo "$n" | perl -pe "s|$rs|$res|g" echo "$n" | perl -pe "s|$rs|$res|g"
done < $SPECNAMEMAIN >$SPECNAMETMP done < $SPECNAMEMAIN >$SPECNAMETMP
[ -s "$SPECNAMETMP" ] && mv -f $SPECNAMETMP $SPECNAME [ -s "$SPECNAMETMP" ] && mv -f $SPECNAMETMP $SPECNAME
$EPMCMD assure checkbashisms $EPMCMD assure checkbashisms && docmd checkbashisms $SPECNAME
docmd checkbashisms $SPECNAME
cat $SPECNAMECHANGELOG >>$SPECNAME cat $SPECNAMECHANGELOG >>$SPECNAME
rm -f $SPECNAMEMAIN $SPECNAMECHANGELOG rm -f $SPECNAMEMAIN $SPECNAMECHANGELOG
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment