diff --git a/tools/project-init/everest-project-init b/tools/project-init/everest-project-init index 493ff4c..0ed5ee3 100755 --- a/tools/project-init/everest-project-init +++ b/tools/project-init/everest-project-init @@ -81,16 +81,17 @@ dload_license() { mkheader() { printf "${blue}[i]${reset} Generating file header...\n" ROOT_URL="https://git.everestlinux.org/EverestLinux/project-init-file-headers/raw/branch/main" + cd ${2} case ${3} in "C") - curl -O -J ${ROOT_URL}/template.c + curl ${ROOT_URL}/template.c -o ${2}/src/template.c if [ "$?" != 0 ]; then printf "${red}[x]${reset} Curl exited with non-zero status.\n" exit 1 fi ;; "Bash") - curl -O -J ${ROOT_URL}/template.sh + curl ${ROOT_URL}/template.sh -o ${2}/src/template.sh if [ "$?" != 0 ]; then printf "${red}[x]${reset} Curl exited with non-zero status.\n" exit 1