Skip to content

Commit

Permalink
Fix unbound VERSION_CODENAME variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-Lematre committed Jan 22, 2025
1 parent 6181ba6 commit 99234be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/debian-base-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [ "$VERSION_ID" = 9 ]; then
fi

# https://unix.stackexchange.com/a/743874
if [ "$VERSION_CODENAME" = "stretch" ]; then
if [ -n "$VERSION_CODENAME" ] && [ "$VERSION_CODENAME" = "stretch" ]; then
sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
sed -i s/security.debian.org/archive.debian.org/g /etc/apt/sources.list
sed -i s/stretch-updates/stretch/g /etc/apt/sources.list
Expand Down

0 comments on commit 99234be

Please sign in to comment.