Fix error in init script
module avail prints its output to stderr. In interactive shells, it seems this stderr is automatically redirected to stdout, so grep would pick it up. This is not the case in batch jobs, so we manually redirect the stderr output to stdout.
Please register or sign in to comment