update secret.sh file handling