Change the "uninstall" option name to "-u"
epsi-builds/msspec_python3/pipeline/head There was a failure building this commit Details

The script for dockerized MsSpec could be uninstalled
with the "msspec uninstall" command whereas it is
"msspec -u" for the non containered version. It is
now "-u" for both scripts.
This commit is contained in:
Sylvain Tricot 2021-09-22 14:29:59 +02:00
parent 34d0e720f5
commit dfa693dfb6
1 changed files with 3 additions and 5 deletions

View File

@ -16,7 +16,7 @@
# along with this msspec. If not, see <http://www.gnu.org/licenses/>. # along with this msspec. If not, see <http://www.gnu.org/licenses/>.
# #
# Source file : utils/dockerized/linux/msspec # Source file : utils/dockerized/linux/msspec
# Last modified: Tue, 21 Sep 2021 17:52:10 +0200 # Last modified: Wed, 22 Sep 2021 14:29:59 +0200
# Committed by : sylvain tricot <sylvain.tricot@univ-rennes1.fr> # Committed by : sylvain tricot <sylvain.tricot@univ-rennes1.fr>
THIS_SCRIPT="$0" THIS_SCRIPT="$0"
@ -131,7 +131,7 @@ Uninstall_MsSpecImage () {
Show_Help () { Show_Help () {
echo "Usage: 1) msspec -p [PYTHON OPTIONS] SCRIPT [ARGUMENTS...]" echo "Usage: 1) msspec -p [PYTHON OPTIONS] SCRIPT [ARGUMENTS...]"
echo " 2) msspec [-l FILE | -i | -h]" echo " 2) msspec [-l FILE | -i | -h]"
echo " 3) msspec [bash | reset | uninstall]" echo " 3) msspec [bash | reset]"
echo "" echo ""
echo "Form (1) is used to launch a script" echo "Form (1) is used to launch a script"
echo "Form (2) is used to load a hdf5 data file" echo "Form (2) is used to load a hdf5 data file"
@ -152,14 +152,12 @@ Show_Help () {
echo " reset This command removes the MsSpec container (but not the" echo " reset This command removes the MsSpec container (but not the"
echo " image). Changes made in the container will be lost and" echo " image). Changes made in the container will be lost and"
echo " any new call to msspec will recreate a new fresh container." echo " any new call to msspec will recreate a new fresh container."
echo " uninstall This command will completely remove the MsSpec container,"
echo " the image and this script."
} }
case $1 in case $1 in
reset) Remove_MsSpecContainer ;; reset) Remove_MsSpecContainer ;;
uninstall) Uninstall_MsSpecImage ;;
bash) Start_MsSpecContainer; Run_Bash ;; bash) Start_MsSpecContainer; Run_Bash ;;
"-u") Uninstall_MsSpecImage ;;
"-h"|"") Start_MsSpecContainer; Show_Help ;; "-h"|"") Start_MsSpecContainer; Show_Help ;;
*) Start_MsSpecContainer; Run_MsSpec "$@" ;; *) Start_MsSpecContainer; Run_MsSpec "$@" ;;
esac esac