diff --git a/init/bash b/init/bash index 577a2914..e09696db 100644 --- a/init/bash +++ b/init/bash @@ -1,3 +1,4 @@ +# test function show_msg { # only echo msg if EESSI_SILENT is unset msg=$1 diff --git a/init/modules/EESSI/2023.06.lua b/init/modules/EESSI/2023.06.lua index 0d82090b..761e36c2 100644 --- a/init/modules/EESSI/2023.06.lua +++ b/init/modules/EESSI/2023.06.lua @@ -1,3 +1,4 @@ +-- test help([[ Description =========== diff --git a/install_scripts.sh b/install_scripts.sh index e1a5ac1a..5ced58cf 100755 --- a/install_scripts.sh +++ b/install_scripts.sh @@ -80,7 +80,9 @@ compare_and_copy() { else echo "File has changed in the PR" fi - cp "$source_file" "$destination_file" + #cp --preserve=mode "$source_file" "$destination_file" + # Use cat to retain existing permissions, set umask to world readable in case the target file does not yet exist. + (umask 022 && cat "$source_file" > "$destination_file") echo "File $source_file copied to $destination_file" else case $? in @@ -173,7 +175,7 @@ init_files=( minimal_eessi_env README.md test.py lmod_eessi_archdetect_wrapper.sh lmod_eessi_archdetect_wrapper_accel.sh ) -copy_files_by_list ${TOPDIR}/init ${INSTALL_PREFIX}/init "${init_files[@]}" +copy_files_by_list ${TOPDIR}/init ${INSTALL_PREFIX}/init_new "${init_files[@]}" # Copy for the init/arch_specs directory arch_specs_files=( @@ -191,7 +193,7 @@ copy_files_by_list ${TOPDIR}/init/Magic_Castle ${INSTALL_PREFIX}/init/Magic_Cast mc_files=( ${EESSI_VERSION}.lua ) -copy_files_by_list ${TOPDIR}/init/modules/EESSI ${INSTALL_PREFIX}/init/modules/EESSI "${mc_files[@]}" +copy_files_by_list ${TOPDIR}/init/modules/EESSI ${INSTALL_PREFIX}/init/modules_new/EESSI "${mc_files[@]}" # Copy for init/lmod directory init_script_files=(