Do not use `realpath` to get absolute paths
There are two reasons to avoid using `realpath` in our scripts:
(a) It resolves symlinks by default. This can be avoided with a flag.
(b) It is not installed by default on some Linux distros.
Use the `$(cd <dir> && pwd)` trick instead.
This is necessary for checking out Hafnium using repo.
Change-Id: I5dd11d91a55054728723648e5c4192f8f1095b6b
diff --git a/build/docker/publish.sh b/build/docker/publish.sh
index 96ec2f1..57ad16a 100755
--- a/build/docker/publish.sh
+++ b/build/docker/publish.sh
@@ -14,7 +14,7 @@
# limitations under the License.
set -euo pipefail
-SCRIPT_DIR="$(realpath "$(dirname "${BASH_SOURCE[0]}")")"
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "${SCRIPT_DIR}/common.inc"
# Requires for the user to be an owner of the GCP 'hafnium-build' project and