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:
Conrad Lara - KG6JEI 2016-12-17 09:38:57 -08:00
parent 39ebd6b45e
commit 579692d15d
1 changed files with 10 additions and 1 deletions

View File

@ -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