From 568be87386d76115e4c50f2d1c6ff25f9b40e706 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 20 Mar 2022 06:52:08 +0300 Subject: [PATCH] add quotes --- builder | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/builder b/builder index f901af9..991d862 100644 --- a/builder +++ b/builder @@ -119,7 +119,7 @@ function get_latest () # $1: Reponame, $2: filename, $3: output filename { local ApiUrl="https://api.github.com/repos/$1/releases/latest" local LatestTag="" - LatestTag=$(curl --silent "$ApiUrl" | grep -Po '"tag_name": "\K.*?(?=")') + LatestTag="$(curl --silent "$ApiUrl" | grep -Po '"tag_name": "\K.*?(?=")')" local DownloadUrl="https://github.com/$1/releases/download/$LatestTag/$2" msg "download $2 ($LatestTag)" @@ -187,7 +187,7 @@ function usage () { local HelpMessage="" - HelpMessage=$(cat < "$MutPubContentTitle" @@ -388,7 +388,7 @@ EOF echo "" >> "$MutPubContentDescription" fi - GitRemoteUrl=$(repo_url "$(git config --get remote.origin.url)") + GitRemoteUrl="$(repo_url "$(git config --get remote.origin.url)")" if [[ -n "$GitRemoteUrl" ]]; then { echo "[h1]Sources[/h1]" @@ -397,7 +397,7 @@ EOF } >> "$MutPubContentDescription" fi - GitUsername=$(git config --get user.name) + GitUsername="$(git config --get user.name)" if [[ -n "$GitUsername" ]]; then { echo "[h1]Author[/h1]" @@ -454,7 +454,7 @@ function merge_package () # $1: What, $2: Where if is_true "$ArgHoldEditor"; then CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditorMergePackages") make $1 $2" else - ModificationTime=$(stat -c %y "$KFWin64/$2") + ModificationTime="$(stat -c %y "$KFWin64/$2")" CMD //C "cd /D $(cygpath -w "$KFWin64") && $(basename "$KFEditorMergePackages") make $1 $2" & PID="$!" while ps -p "$PID" &> /dev/null @@ -590,7 +590,7 @@ function compile () if is_true "$ArgHoldEditor"; then CMD //C "$(cygpath -w "$KFEditor") make $StripSourceArg -useunpublished" - Logfile=$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ") + Logfile="$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ")" parse_log "$Logfile" if ! compiled; then die "compilation failed" @@ -602,7 +602,7 @@ function compile () while ps -p "$PID" &> /dev/null do sleep 1 - Logfile=$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ") + Logfile="$(find "$KFLogs" -printf '%T+ %p\n' | sort -r | head -n1 | cut -f2- -d" ")" if compiled; then msg "${GRN}successfully compiled${DEF}" @@ -776,7 +776,7 @@ function upload () find "$KFPublish" -type d -empty -delete - PreparedWsDir=$(mktemp -d -u -p "$KFDoc") + PreparedWsDir="$(mktemp -d -u -p "$KFDoc")" cat > "$MutWsInfo" <