# SPSP transfer-tool is developed and maintained by SIB. For more information, please contact spsp-support@sib.swiss
VERSION="1.11.0"# bumped to support spsp --help, spsp --version
VERSION="1.12.0"# bumped to support spsp --help, spsp --version
# Define colors that are used in the help screen
...
...
@@ -841,6 +841,21 @@ if [ $# -gt 0 ]; then
echo" - Ignoring .env file..."
else
if[-f .env ];then
if["$MACHINE"=="linux"];then
if["$(stat-c"%a" .env)"!="600"];then
printf"${BACK_RED} ERROR ${COL_RESET}${COL_RED}Stopped with 1 error${COL_RESET}${COL_GREY}${TIME}${COL_RESET}\n"
printf"${BACK_RED} error ${COL_RESET} permissions incorrect: the configuration file should be configured with 600 permissions (chmod 600 .env).\n"
printf"${BACK_CYAN} INFO ${COL_RESET} More info at ${COL_CYAN} https://gitlab.sib.swiss/SPSP/transfer-tool/-/wikis/Installation#configure-the-env-file ${COL_RESET}"
exit 22
fi
elif["$MACHINE"=="mac"];then
if["$(stat-f"%Lp" .env)"!="600"];then
printf"${BACK_RED} ERROR ${COL_RESET}${COL_RED}Stopped with 1 error${COL_RESET}${COL_GREY}${TIME}${COL_RESET}\n"
printf"${BACK_RED} error ${COL_RESET} permissions incorrect: the configuration file should be configured with 600 permissions (chmod 600 .env).\n"
printf"${BACK_CYAN} INFO ${COL_RESET} More info at ${COL_CYAN} https://gitlab.sib.swiss/SPSP/transfer-tool/-/wikis/Installation#configure-the-env-file ${COL_RESET}"