Skip to content

Commit

Permalink
scripts/boot-completed: fix dynamic version to support for ci builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sidex15 committed Feb 8, 2025
1 parent b7e61aa commit 481ee13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boot-completed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ logfile="$tmpfolder/logs/susfs.log"
logfile1="$tmpfolder/logs/susfs1.log"
version=$(${SUSFS_BIN} show version)
SUSFS_DECIMAL=$(echo "$version" | sed 's/^v//; s/\.//g')
suffix=$(grep "^version=" $MODDIR/module.prop | sed 's/.*\(-R[0-9]*\)$/\1/')
kernel_ver=$(head -n 1 "$PERSISTENT_DIR/kernelversion.txt")

hide_cusrom=0
Expand All @@ -31,7 +30,7 @@ sed -i "s/^description=.*/$description/g" $MODDIR/module.prop
# Detect susfs version
if [ -n "$version" ] && [ "$SUSFS_DECIMAL" -gt 152 ] 2>/dev/null; then
# Replace only version number, keep suffix
sed -i "s/^version=v[0-9.]*\(-R[0-9]*\)$/version=$version$suffix/" $MODDIR/module.prop
sed -i "s/^version=v[0-9.]*/version=$version/" $MODDIR/module.prop
fi

# routines
Expand Down

0 comments on commit 481ee13

Please sign in to comment.