mirror of https://github.com/aredn/aredn.git
bugfix: Correct final output image file name.
After Change-Id: I4ac2a7aa903fb0d86f9a5200a4160e5028352fdd the build version is being put into the middle of the file name. Change-Id: I36c0d9b4c5bc509f45f3a8861bbfc1e97fea3f46
This commit is contained in:
parent
39ebd6b45e
commit
579692d15d
|
@ -27,5 +27,14 @@ if [ ! -z "$BUILD_SET_VERSION" ]; then
|
|||
else
|
||||
MYBUILDNAME="${SHORT_BRANCH}-${BUILD_NUMBER}-${SHORT_COMMIT}"
|
||||
fi
|
||||
rename "s/openwrt-ar71xx-generic/AREDN-$MYBUILDNAME/g" bin/ar71xx/*
|
||||
|
||||
# Rename the images
|
||||
find bin/ar71xx/ -not -path "*/packages/*" -type f | while read FILE
|
||||
do
|
||||
NEWNAME=$(echo "$FILE" | sed -r "s/openwrt-.*ar71xx-(generic)|(mikrotik)|(nand)/AREDN-$MYBUILDNAME/g")
|
||||
if [ "$FILE" != "$NEWNAME" ]
|
||||
then
|
||||
mv "$FILE" "$NEWNAME"
|
||||
fi
|
||||
done
|
||||
|
||||
|
|
Loading…
Reference in New Issue