Commit ea60a0bccdbf6123e5b28275e944504a07e4f51d
1 parent
1bdd9f9a
Exists in
master
and in
111 other branches
trailing slash for env vars
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
update_amda/updateEnv.sh
1 | 1 | #!/bin/bash |
2 | 2 | |
3 | 3 | export AMDA_SPASE_INTERFACE=/home/budnik/AMDA_SPASE_INTERFACE/ |
4 | + if [[ ${AMDA_SPASE_INTERFACE: -1} != "/" ]]; then | |
5 | + export AMDA_SPASE_INTERFACE=$AMDA_SPASE_INTERFACE/ | |
6 | + fi | |
7 | + | |
4 | 8 | # info dirs will be written here |
5 | 9 | export NEWMETA=/home/budnik/NEWMETA/ |
6 | 10 | if [[ ${NEWMETA: -1} != "/" ]]; then |
7 | - export NEWMETA=$NEWMETA"/" | |
11 | + export NEWMETA=$NEWMETA/ | |
8 | 12 | fi |
9 | 13 | |
10 | 14 | # AMDA internal parameter XMLs |
11 | 15 | export AMDAINTERNALDIR=/home/budnik/AMDA_INTERNAL_METADATA/ |
16 | + if [[ ${AMDAINTERNALDIR: -1} != "/" ]]; then | |
17 | + export AMDAINTERNALDIR=$AMDAINTERNALDIR/ | |
18 | + fi | |
19 | + | |
12 | 20 | # AMDA Installation |
13 | 21 | export AMDAINSTALLATION=/home/budnik/AMDA |
14 | 22 | # DD Installation | ... | ... |