Skip to content

Commit

Permalink
Post update should only execute after an update.
Browse files Browse the repository at this point in the history
  • Loading branch information
fewtarius committed Jul 10, 2024
1 parent 9e71df3 commit 1b17d04
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
4 changes: 2 additions & 2 deletions PKGBUILD/steamfork-customizations-jupiter/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Maintainer: Fewtarius

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

steamos-readonly disable 2>/dev/null
if [[ "$1" == "update" ]]; then
steamfork-grub-update
source /etc/os-release
if [ -e "/etc/post-update" ]
then
LAST_UPDATE=$(cat /etc/post-update)
fi

if [ -d "/etc/post-update.d" ]
if [ ! "${LAST_UPDATE}" = "${BUILD_ID}" ]
then
for UPDATE in /etc/post-update.d/*
do
${UPDATE}
done
steamos-readonly disable >/var/log/update.log 2>&1
if [ -d "/etc/post-update.d" ]
then
for UPDATE in /etc/post-update.d/*
do
${UPDATE} >>/var/log/update.log 2>&1
done
fi
steamos-readonly enable >>/var/log/update.log 2>&1
fi

steamos-readonly enable 2>/dev/null
exit 0

0 comments on commit 1b17d04

Please sign in to comment.