Skip to content

Commit

Permalink
remove the text file creation in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
happynet-why authored and markpash committed Nov 26, 2024
1 parent 15a546c commit 6c893c4
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ for profile in $profiles; do
IMAGEBUILDER_REPO="openwrt-imagebuilder-$PATH_PART.Linux-x86_64"
cd "$IMAGEBUILDER_REPO"

TEXT_FILE=../$BUILD_DIR/version-$profile.txt
echo "new_version=$release_version" > "$TEXT_FILE"

#Make the images
make image PROFILE="$profile" PACKAGES="$INCLUDE_PACKAGES $EXCLUDE_PACKAGES" FILES=$FILES

Expand All @@ -81,13 +78,8 @@ for profile in $profiles; do
# Rename the file
mv "$file" "$newfile"

if [[ "$file" == *"sysupgrade"* ]];then
filename=$(basename "$newname" )
echo "firmwareUrl=https://github.com/nasnet-community/neighbor-link/blob/0f2001dd371d02357248beb61ec9a812d82a743a/builds/$filename" >> "$TEXT_FILE"
fi

done

cd ../

done

0 comments on commit 6c893c4

Please sign in to comment.