Skip to content

Commit

Permalink
v9.0
Browse files Browse the repository at this point in the history
- DietPi-Pre-patches | Apply master branch as fallback, like DietPi-Update does
  • Loading branch information
MichaIng committed Jan 21, 2024
1 parent 09ebeda commit c46ebc9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .update/pre-patches
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ then
find /etc/apt/preferences.d/* &> /dev/null && G_EXEC sed -i 's/raspberrypi.org/raspberrypi.com/' /etc/apt/preferences.d/*
fi
GITBRANCH_TARGET=$(sed -n '/^[[:blank:]]*DEV_GITBRANCH=/{s/^[^=]*=//p;q}' /boot/dietpi.txt)
GITBRANCH_TARGET=${GITBRANCH_TARGET:-master}
GITBRANCH_TARGET=${GITBRANCH_TARGET//\//-}
G_EXEC mkdir -p "../DietPi-Update/DietPi-$GITBRANCH_TARGET/dietpi"
# shellcheck disable=SC2261
Expand Down

0 comments on commit c46ebc9

Please sign in to comment.