cp2k/tools/docker/scripts/prod_entrypoint.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
305 B
Bash
Raw Permalink Normal View History

#!/bin/bash -e
# author: Ole Schuett
if (($# < 2)); then
echo "Usage: prod_entrypoint.sh <ARCH> <VERSION>"
exit 1
fi
ARCH=$1
# shellcheck disable=SC2034
VERSION=$2
shift 2
# shellcheck disable=SC1091
source /opt/cp2k-toolchain/install/setup
2022-03-11 12:33:27 +01:00
export PATH="/opt/cp2k/exe/${ARCH}:${PATH}"
"$@"
#EOF