Skip to content

Commit 986aa4f

Browse files
committed
Make shellcheck happy
1 parent b630362 commit 986aa4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deb-get

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,8 +2426,8 @@ if [ -e /etc/os-release ]; then
24262426
#Debian VERSION_CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g')
24272427
UPSTREAM_ID="$(grep "^ID=" /etc/os-release | cut -d'=' -f2)"
24282428
UPSTREAM_ID_LIKE="$(grep "^ID_LIKE=" /etc/os-release | cut -d'=' -f2 | sed s/\"//g | cut -d' ' -f1)"
2429-
if [ ! -z "$UPSTREAM_ID_LIKE" ]; then
2430-
UPSTREAM_ID=$UPSTREAM_ID_LIKE
2429+
if [ ! -z "${UPSTREAM_ID_LIKE}" ]; then
2430+
UPSTREAM_ID="${UPSTREAM_ID_LIKE}"
24312431
fi
24322432
case "${UPSTREAM_ID}" in
24332433
debian) UPSTREAM_CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d'=' -f2);;

0 commit comments

Comments
 (0)