From cc61e9cc1f8d85c540762b09447f76973d19c4c4 Mon Sep 17 00:00:00 2001 From: Liam Waldron Date: Wed, 8 Nov 2023 09:55:21 -0500 Subject: [PATCH] fix curl exiting with non-zero status --- tools/project-init/everest-project-init | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/project-init/everest-project-init b/tools/project-init/everest-project-init index 0ed5ee3..4f9a514 100755 --- a/tools/project-init/everest-project-init +++ b/tools/project-init/everest-project-init @@ -84,14 +84,14 @@ mkheader() { cd ${2} case ${3} in "C") - curl ${ROOT_URL}/template.c -o ${2}/src/template.c + curl ${ROOT_URL}/template.c -o ${2}/src if [ "$?" != 0 ]; then printf "${red}[x]${reset} Curl exited with non-zero status.\n" exit 1 fi ;; "Bash") - curl ${ROOT_URL}/template.sh -o ${2}/src/template.sh + curl ${ROOT_URL}/template.sh -o ${2}/src if [ "$?" != 0 ]; then printf "${red}[x]${reset} Curl exited with non-zero status.\n" exit 1