Skip to content

Commit

Permalink
expanding ~ IV
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Aug 30, 2024
1 parent 07d432e commit f534cee
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions install-plumed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# To me: the enviromental variable I am using as input are in CAPS,
# if I modify a variable is in lower case
set -x

cat <<EOF
REPO="$REPO"
Expand Down Expand Up @@ -49,9 +50,7 @@ prefix=${PREFIX-~/opt}
prefix=${prefix/~/$HOME}
mkdir -p "$prefix"
prefix=$(realpath "$prefix")
if [[ -n "$PREFIX" ]]; then
plumed_options="$plumed_options --prefix=\"$prefix\""
fi
plumed_options="$plumed_options --prefix=\"$prefix\""

if [[ -n "$MODULES" ]]; then
plumed_options="$plumed_options --enable-modules=$MODULES"
Expand All @@ -60,6 +59,11 @@ fi
#cheking out to $version before compiling the dependency json for this $version
git checkout --quiet $version

cat <<EOF
prefix=$prefix
plumed_options=$plumed_options
EOF

if [[ -n $DEPPATH ]]; then
mkdir -pv "$DEPPATH"
dependencies_file="${DEPPATH}/extradeps${version}.json"
Expand Down

0 comments on commit f534cee

Please sign in to comment.