Skip to content
Snippets Groups Projects
image-exec 274 B
Newer Older
  • Learn to ignore specific revisions
  • Lukáš Krupčík's avatar
    Lukáš Krupčík committed
    # !/bin/bash
    
    if [ -z "IMAGE_PATH_LOCAL" ]; then 
        echo -e "\e[31mAn error occured, exiting...\e[0m"
        exit 1
    fi
    
    if [ -z "$1" ]; then 
        echo -e "\e[32mUsage: image-exec COMMAND\e[0m"
        exit 1
    fi
    
    
    easybuild's avatar
    easybuild committed
    apptainer exec --bind /scratch --bind /apps $IMAGE_PATH_LOCAL "$@"