Skip to content

Commit

Permalink
detect container
Browse files Browse the repository at this point in the history
  • Loading branch information
jiang548 committed Apr 28, 2022
1 parent 44892c3 commit f7fb895
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions script/network_portal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7fb895

Please sign in to comment.