From 13ec6651534435b866669b9b5b8f540dc8bbcb6a Mon Sep 17 00:00:00 2001 From: AuxXxilium Date: Fri, 23 Jun 2023 19:51:51 +0200 Subject: [PATCH] dsm: reformat Signed-off-by: AuxXxilium --- update.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/update.sh b/update.sh index 864a070..92aacaa 100755 --- a/update.sh +++ b/update.sh @@ -12,10 +12,10 @@ fi curl -k -w "%{http_code}" -L "${MODELSURL}" -o "${MODELSFILE}" while IFS= read -r line; do - PAT_VERSION=$(echo "${line}" | cut -f 1 -d ' ') - PAT_BUILD=$(echo "${line}" | cut -f 2 -d ' ') - MODEL=$(echo "${line}" | cut -f 3 -d ' ') - BUILD=$(echo "${line}" | cut -f 4 -d ' ') + PAT_VERSION="$(echo "${line}" | cut -f 1 -d ' ')" + PAT_BUILD="$(echo "${line}" | cut -f 2 -d ' ')" + MODEL="$(echo "${line}" | cut -f 3 -d ' ')" + BUILD="$(echo "${line}" | cut -f 4 -d ' ')" CACHE_PATH="${HOME}/cache" RAMDISK_PATH="${CACHE_PATH}/ramdisk" PAT_FILE="${MODEL}_${BUILD}.pat" @@ -28,7 +28,7 @@ while IFS= read -r line; do FILESPATH="${HOME}/files" DESTINATIONFILES="${FILESPATH}/${MODEL}/${BUILD}" if [ ! -f "${DESTINATIONFILES}/dsm.tar" ] || [ ! -f "${DESTINATION}" ]; then - PAT_MODEL=`echo "${MODEL}" | sed 's/ /%20/'` + PAT_MODEL="$(echo "${MODEL}" | sed 's/ /%20/')" echo "${PAT_MODEL} ${VERSION} ${BUILD}" PAT_LINK="${PAT_VERSION}/${PAT_BUILD}/DSM_${PAT_MODEL}_${BUILD}.pat"