@@ -92,8 +92,8 @@ if [[ ! -x "$build_script" ]]; then
92
92
echo " $this_script : $build_script script does not exist or the user lacks executable permission for it."
93
93
echo " $this_script : Please run this_script in the top-level OpenCoarrays source directory or set the"
94
94
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]."
97
97
exit 20
98
98
fi
99
99
@@ -519,7 +519,7 @@ find_or_install()
519
519
fi
520
520
fi
521
521
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):"
523
523
stack_print dependency_pkg
524
524
525
525
stack_pop dependency_pkg package
@@ -651,7 +651,7 @@ print_header()
651
651
fi
652
652
printf " Ready to proceed? (y/n)"
653
653
read install_now
654
- printf " \n"
654
+ printf " $install_now \n"
655
655
656
656
if [[ " $install_now " != " y" ]]; then
657
657
printf " $this_script : Aborting. [exit 85]\n"
@@ -689,7 +689,9 @@ report_results()
689
689
echo " "
690
690
echo " $install_path /bin."
691
691
echo " "
692
- rm $install_path /setup.sh
692
+ if [[ -f $install_path /setup.sh ]]; then
693
+ rm $install_path /setup.sh
694
+ fi
693
695
# Prepend the OpenCoarrays license to the setup.sh script:
694
696
while IFS=' ' read -r line || [[ -n " $line " ]]; do
695
697
echo " # $line " >> $install_path /setup.sh
0 commit comments