From 8e706a31efe84a6a77acaffa0f50b0b6fad99957 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Mon, 5 Oct 2020 15:52:47 +0200 Subject: Script optimization - prevent adding multilib twice --- make_slackware_live.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'make_slackware_live.sh') diff --git a/make_slackware_live.sh b/make_slackware_live.sh index e9e22c2..d61e67a 100755 --- a/make_slackware_live.sh +++ b/make_slackware_live.sh @@ -1230,8 +1230,10 @@ fi # Do we need to include multilib? # Add these last so we can easily distribute the module separately. if [ "$MULTILIB" = "YES" ]; then - echo "-- Adding multilib." - MSEQ="${MSEQ} pkglist:multilib" + if ! echo ${MSEQ} |grep -qw multilib ; then + echo "-- Adding multilib." + MSEQ="${MSEQ} pkglist:multilib" + fi fi echo "-- Creating liveslak ${VERSION} '${LIVEDE}' image (based on ${DISTRO^}-${SL_VERSION} ${SL_ARCH})." -- cgit v1.2.3