Commit 20b92f89 authored by Julien Penguen's avatar Julien Penguen

correction couleur version macos

parent a6f8ab92
......@@ -21,20 +21,20 @@ function_message()
echo ""
echo "------------------------------------"
echo ""
echo "${RED}========================================================="
echo "WARNING => ${message}"
echo "=========================================================${COLOR_OFF}"
echo -e "${RED}========================================================="
echo -e "WARNING => ${message}"
echo -e "=========================================================${COLOR_OFF}"
elif [ "$type_message" == "TYPE_FILE_ERROR" ]; then
echo ""
echo "------------------------------------"
echo ""
echo "${RED}========================================================="
echo " ERROR with option '${option}' "
echo ""
echo "${message}"
echo "=========================================================${COLOR_OFF}"
echo -e "${RED}========================================================="
echo -e " ERROR with option '${option}' "
echo -e ""
echo -e "${message}"
echo -e "=========================================================${COLOR_OFF}"
echo ""
echo "------------------------------------"
......@@ -43,11 +43,11 @@ function_message()
echo ""
echo "------------------------------------"
echo ""
echo "${RED}========================================================="
echo " ERROR with option '${option}' "
echo ""
echo "${message}"
echo "=========================================================${COLOR_OFF}"
echo -e "${RED}========================================================="
echo -e " ERROR with option '${option}' "
echo -e ""
echo -e "${message}"
echo -e "=========================================================${COLOR_OFF}"
echo ""
echo "------------------------------------"
......@@ -56,22 +56,22 @@ function_message()
echo ""
echo "------------------------------------"
echo ""
echo "${GREEN}========"
echo "= HELP ="
echo "========${COLOR_OFF}"
echo -e "${GREEN}========"
echo -e "= HELP ="
echo -e "========${COLOR_OFF}"
elif [ "$type_message" == "TYPE_UNKNOWN" ]; then
echo ""
echo "${RED}==============================="
echo " error: unrecognized arguments "
echo "===============================${COLOR_OFF}"
echo -e "${RED}==============================="
echo -e " error: unrecognized arguments "
echo -e "===============================${COLOR_OFF}"
elif [ "$type_message" == "TYPE_EXIST_VERSION" ]; then
echo ''
echo "${RED}===================================="
echo " WARNING"
echo "====================================${COLOR_OFF}"
echo -e "${RED}===================================="
echo -e " WARNING"
echo -e "====================================${COLOR_OFF}"
echo ''
echo '------------------------------------'
echo ''
......@@ -90,9 +90,9 @@ function_message()
elif [ "$type_message" == "TYPE_FORCE_WARNING" ]; then
echo ''
echo "${RED}===================================="
echo " WARNING"
echo "====================================${COLOR_OFF}"
echo -e "${RED}===================================="
echo -e " WARNING"
echo -e "====================================${COLOR_OFF}"
echo ''
echo '------------------------------------'
echo ''
......@@ -108,9 +108,9 @@ function_message()
elif [ "$type_message" == "TYPE_DELETE_EXIST_VERSION" ]; then
echo ''
echo "${RED}===================================="
echo " WARNING"
echo "====================================${COLOR_OFF}"
echo -e "${RED}===================================="
echo -e " WARNING"
echo -e "====================================${COLOR_OFF}"
echo ''
echo '------------------------------------'
echo ''
......@@ -1188,7 +1188,7 @@ case ${sort_arg_keys[0]} in
if [ -f ${area_ajs[$k]} ]; then
echo "=> ${area_ajs[$k]} exist"
else
echo "=> ${RED}WARNING${COLOR_OFF} : ${area_ajs[$k]} not found"
echo -e "=> ${RED}WARNING${COLOR_OFF} : ${area_ajs[$k]} not found"
echo "=> construction of ${area_ajs[$k]} in progress ..."
function_create_ajs_file ${INPUT_FILE_SURVEYS} ${area_ajs[$k]} ${list_zone[$k]} ${list_ra[k]} ${list_dec[k]} "/home/"$USER"/.photos_montage_aladin/"${list_zone[$k]}"/images"
echo "=> construction of ${area_ajs[$k]} OK"
......@@ -1249,7 +1249,7 @@ case ${sort_arg_keys[0]} in
state="RUN"
if [ $force == 'FALSE' ]; then
echo "=> ${RED}WARNING${COLOR_OFF} : Missing one or more images or montages"
echo -e "=> ${RED}WARNING${COLOR_OFF} : Missing one or more images or montages"
fi
fi
......@@ -1368,7 +1368,7 @@ case ${sort_arg_keys[0]} in
else
echo "=> ${GREEN}INFOS${COLOR_OFF} : Nothing to do for ${area_folder[$k]} all files are present"
echo -e "=> ${GREEN}INFOS${COLOR_OFF} : Nothing to do for ${area_folder[$k]} all files are present"
echo " "
fi
......@@ -1523,8 +1523,8 @@ case ${sort_arg_keys[0]} in
echo "-------------------------------------------------------------------"
echo " aladin stable versions available on :"
echo ""
echo "${RED}- Aladin server : ${ALADIN_URL}${RED}"
echo "${GREEN}- Localhost${COLOR_OFF}"
echo -e "${RED}- Aladin server : ${ALADIN_URL}${RED}"
echo -e "${GREEN}- Localhost${COLOR_OFF}"
echo "-------------------------------------------------------------------"
echo ""
......@@ -1532,12 +1532,12 @@ case ${sort_arg_keys[0]} in
for number_version in ${list_jar}
do
if [ -z $id_image ]; then
echo " ${RED} ${number_version}${COLOR_OFF}"
echo -e " ${RED} ${number_version}${COLOR_OFF}"
else
if [ ${number_version} == ${ALADIN_VERSION} ]; then
echo " ${GREEN} *${COLOR_OFF} ${RED}${number_version}${COLOR_OFF}"
echo -e " ${GREEN} *${COLOR_OFF} ${RED}${number_version}${COLOR_OFF}"
else
echo " ${RED} ${number_version}${COLOR_OFF}"
echo -e " ${RED} ${number_version}${COLOR_OFF}"
fi
fi
done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment