first official everest-project-init release

This commit is contained in:
Liam Waldron 2023-11-07 13:23:47 -05:00
parent 912edb375e
commit 0b5a427902

View File

@ -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