Fix AOMP_REPOS check in clone_aomp.sh that can fail if AOMP_REPOS
is set to a path that contains a symlink as opposed to the actual path
as reported by realpath.
@@ -10,7 +10,9 @@ thisdir=`dirname $realpath`
. $thisdir/aomp_common_vars
# --- end standard header ----
-if [ "$thisdir" != "$AOMP_REPOS/$AOMP_REPO_NAME/bin" ] ; then
+thischk="$AOMP_REPOS/$AOMP_REPO_NAME/bin"
+thischk=`realpath $thischk`
+if [ "$thisdir" != "$thischk" ] ; then
echo
echo "ERROR: This clone_aomp.sh script is found in directory $thisdir "
echo " But it should be found at $AOMP_REPOS/$AOMP_REPO_NAME/bin because the value"
