Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
singiamtel committed Feb 17, 2025
1 parent ff6cfa8 commit 3717a06
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cvmfs/link_latest_gcc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ for D in el* ubuntu*; do
fi
NEWLINK=../../../../../$LATEST
CURLINK=$(readlink etc/toolchain/modulefiles/"$D"/Toolchain/GCC-"${GCC_VER}"||true)
[[ $CURLINK == $NEWLINK ]] && { echo "No change"; } \
|| { mkdir -p etc/toolchain/modulefiles/"$D"/Toolchain;
ln -nfsv "$NEWLINK" etc/toolchain/modulefiles/"$D"/Toolchain/GCC-"${GCC_VER}"; }
if [[ $CURLINK == "$NEWLINK" ]]; then
print_green "No change"
else
mkdir -p etc/toolchain/modulefiles/"$D"/Toolchain
ln -nfsv "$NEWLINK" etc/toolchain/modulefiles/"$D"/Toolchain/GCC-"${GCC_VER}"
fi
echo
done
print_green "All ok"

0 comments on commit 3717a06

Please sign in to comment.