Skip to content

Commit

Permalink
Update 30_version_txt.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
dogi authored Feb 5, 2025
1 parent e30f0c6 commit cfc95ae
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions scripts.d/30_version_txt.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
#!/bin/sh
architecture="$1"
set -e

ROOT=mnt/img_root
case "$architecture" in
"armhf" | "")
version=$(git tag --sort=-creatordate | sed -n '1p')
;;
"arm64")
version="$(git tag --sort=-creatordate | sed -n '1p')-$architecture"
;;
esac
version="$(git tag --sort=-creatordate | sed -n '1p')-arm64"

echo "writing version.txt: $version"
echo "$version" > $ROOT/boot/version.txt
echo "$version" > $ROOT/boot/version.txt

0 comments on commit cfc95ae

Please sign in to comment.