Skip to content

Commit

Permalink
Make shellcheck happy
Browse files Browse the repository at this point in the history
  • Loading branch information
flexiondotorg committed Jul 20, 2022
1 parent b630362 commit 986aa4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deb-get
Original file line number Diff line number Diff line change
Expand Up @@ -2426,8 +2426,8 @@ if [ -e /etc/os-release ]; then
#Debian VERSION_CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d'=' -f2 | sed 's/"//g')
UPSTREAM_ID="$(grep "^ID=" /etc/os-release | cut -d'=' -f2)"
UPSTREAM_ID_LIKE="$(grep "^ID_LIKE=" /etc/os-release | cut -d'=' -f2 | sed s/\"//g | cut -d' ' -f1)"
if [ ! -z "$UPSTREAM_ID_LIKE" ]; then
UPSTREAM_ID=$UPSTREAM_ID_LIKE
if [ ! -z "${UPSTREAM_ID_LIKE}" ]; then
UPSTREAM_ID="${UPSTREAM_ID_LIKE}"
fi
case "${UPSTREAM_ID}" in
debian) UPSTREAM_CODENAME=$(grep VERSION_CODENAME /etc/os-release | cut -d'=' -f2);;
Expand Down

0 comments on commit 986aa4f

Please sign in to comment.