Skip to content

Commit

Permalink
Better behavior from postupdate.
Browse files Browse the repository at this point in the history
  • Loading branch information
fewtarius committed Jul 10, 2024
1 parent 1b17d04 commit 435ae00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PKGBUILD/steamfork-customizations-jupiter/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pkgname=steamfork-customizations-jupiter
pkgver=2024.07.10
pkgrel=1
pkgrel=2
pkgdesc='SteamFork customizations provider.'
arch=('any')
url='http://www.steamfork.org'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash

UPDATE_STAMP="/etc/post-update.last"
source /etc/os-release
if [ -e "/etc/post-update" ]
if [ -e "${UPDATE_STAMP}" ]
then
LAST_UPDATE=$(cat /etc/post-update)
LAST_UPDATE="$(cat ${UPDATE_STAMP})"
fi

if [ ! "${LAST_UPDATE}" = "${BUILD_ID}" ]
Expand All @@ -17,5 +18,6 @@ then
done
fi
steamos-readonly enable >>/var/log/update.log 2>&1
echo "${BUILD_ID}" >${UPDATE_STAMP}
fi
exit 0

0 comments on commit 435ae00

Please sign in to comment.