From f7fb895d82f893ed2697e8fe5c170f13c54230f4 Mon Sep 17 00:00:00 2001 From: jiang548 Date: Wed, 27 Apr 2022 22:26:38 -0400 Subject: [PATCH] detect container --- script/network_portal.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/script/network_portal.sh b/script/network_portal.sh index f5896eb..9e4c3b9 100755 --- a/script/network_portal.sh +++ b/script/network_portal.sh @@ -134,6 +134,18 @@ case "$1" in shift done + +$SINGULARITY_COMMAND + +# check if in a singularity container +if [[ $(which singularity) == "" ]];then +echo -e "The container couldn't be found. \nPlease don't invoke a container mannually as it's integrated in the analysis. +You could edit the path of the container using --sif argument." +exit -1 +fi + +exit -1 + file_purge $SIGNET_TMP_ROOT/tmpn $forcerm mkdir -p $SIGNET_RESULT_ROOT/resn mkdir -p $SIGNET_DATA_ROOT/network