From 405b62dd367839a32d7395989244420f02a6c190 Mon Sep 17 00:00:00 2001 From: Johannes Pietrzyk <40020979+JPietrzykTUD@users.noreply.github.com> Date: Fri, 6 Sep 2024 15:18:13 +0200 Subject: [PATCH] Update install_tsl.sh --- .github/workflows/install_tsl.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/install_tsl.sh b/.github/workflows/install_tsl.sh index f3ed264..f1a87f9 100755 --- a/.github/workflows/install_tsl.sh +++ b/.github/workflows/install_tsl.sh @@ -13,8 +13,12 @@ curl -L "https://github.com/db-tu-dresden/TSL/releases/latest/download/detect_fl chmod +x ${TMP_DIR}/detect_flags.sh #create array from flags string -# AVAIL_FLAGS=($(${TMP_DIR}/detect_flags.sh)) -IFS=' ' read -r -a AVAIL_FLAGS <<< "$(${TMP_DIR}/detect_flags.sh)" +DETECTED_FLAGS$=$(${TMP_DIR}/detect_flags.sh) +if [ $? != 0 ]; then + echo "Could not detect any flags." + exit 1 +fi +IFS=' ' read -r -a AVAIL_FLAGS <<< "${DETECTED_FLAGS}" unset IFS