@@ -92,8 +92,8 @@ if [[ ! -x "$build_script" ]]; then
9292 echo " $this_script : $build_script script does not exist or the user lacks executable permission for it."
9393 echo " $this_script : Please run this_script in the top-level OpenCoarrays source directory or set the"
9494 echo " $this_script : OPENCOARRAYS_SRC_DIR environment variable to the top-level OpenCoarrays source path."
95- echo " $this_script : If you have specified an installation director that requires administrative privileges,"
96- echo " $this_script : please prepend 'sudo -E' to your invocation of the script [exit 20]."
95+ echo " $this_script : If you have specified an installation directory that requires administrative privileges,"
96+ echo " $this_script : please prepend 'sudo' or 'sudo -E' to your invocation of the script [exit 20]."
9797 exit 20
9898fi
9999
@@ -519,7 +519,7 @@ find_or_install()
519519 fi
520520 fi
521521
522- echo " $this_script : Remaining dependency stack (top to bottom = left to right):"
522+ echo " $this_script : Remaining $package dependency stack (top to bottom = left to right):"
523523 stack_print dependency_pkg
524524
525525 stack_pop dependency_pkg package
@@ -651,7 +651,7 @@ print_header()
651651 fi
652652 printf " Ready to proceed? (y/n)"
653653 read install_now
654- printf " \n"
654+ printf " $install_now \n"
655655
656656 if [[ " $install_now " != " y" ]]; then
657657 printf " $this_script : Aborting. [exit 85]\n"
@@ -689,7 +689,9 @@ report_results()
689689 echo " "
690690 echo " $install_path /bin."
691691 echo " "
692- rm $install_path /setup.sh
692+ if [[ -f $install_path /setup.sh ]]; then
693+ rm $install_path /setup.sh
694+ fi
693695 # Prepend the OpenCoarrays license to the setup.sh script:
694696 while IFS=' ' read -r line || [[ -n " $line " ]]; do
695697 echo " # $line " >> $install_path /setup.sh
0 commit comments