From 16d9291fa80f186ab5a6ade467e86450c48cd779 Mon Sep 17 00:00:00 2001 From: Robert Stoll Date: Fri, 15 Nov 2024 21:15:30 +0100 Subject: [PATCH] add \n to printf error message in install.do.sh --- .github/workflows/gt-update.yml | 4 ++-- README.md | 2 +- install.doc.sh | 2 +- install.sh | 2 +- src/gitlab/install-gt.sh | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/gt-update.yml b/.github/workflows/gt-update.yml index 43830d6..eda3c2b 100644 --- a/.github/workflows/gt-update.yml +++ b/.github/workflows/gt-update.yml @@ -44,7 +44,7 @@ jobs: wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh.sig" && \ gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ chmod +x ./install.sh && \ - echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!"; exit 1) && \ + echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \ ./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \ false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" # end install.doc.sh @@ -83,7 +83,7 @@ jobs: wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh.sig" && \ gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ chmod +x ./install.sh && \ - echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!"; exit 1) && \ + echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \ ./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \ false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" # end install.doc.sh diff --git a/README.md b/README.md index 5ceb5fa..8f4c7ba 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,7 @@ wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh" && \ wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh.sig" && \ gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ chmod +x ./install.sh && \ -echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!"; exit 1) && \ +echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \ ./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \ false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" ``` diff --git a/install.doc.sh b/install.doc.sh index 2fa90a8..3734760 100755 --- a/install.doc.sh +++ b/install.doc.sh @@ -10,6 +10,6 @@ wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh" && \ wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh.sig" && \ gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ chmod +x ./install.sh && \ -echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!"; exit 1) && \ +echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \ ./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \ false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" diff --git a/install.sh b/install.sh index bc429ce..5d4e3f2 100755 --- a/install.sh +++ b/install.sh @@ -25,7 +25,7 @@ # wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh.sig" && \ # gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ # chmod +x ./install.sh && \ -# echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!"; exit 1) && \ +# echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \ # ./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \ # false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" # diff --git a/src/gitlab/install-gt.sh b/src/gitlab/install-gt.sh index 2875ba1..3d95b72 100755 --- a/src/gitlab/install-gt.sh +++ b/src/gitlab/install-gt.sh @@ -43,7 +43,7 @@ wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh" && \ wget "https://raw.githubusercontent.com/tegonal/gt/v1.0.3/install.sh.sig" && \ gpg --homedir ./gpg --verify ./install.sh.sig ./install.sh && \ chmod +x ./install.sh && \ -echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!"; exit 1) && \ +echo "verification successful" || (printf >&2 "\033[0;31mERROR\033[0m: verification failed, don't continue !!\n"; exit 1) && \ ./install.sh && result=true || (echo >&2 "installation failed"; exit 1) && \ false || cd "$currentDir" && rm -r "$tmpDir" && "${result:-false}" # end install.doc.sh