Skip to content

Commit

Permalink
doc: make update.sh more POSIXy
Browse files Browse the repository at this point in the history
realpath is different on Linux and macOS
  • Loading branch information
cgay committed May 18, 2024
1 parent 4b8b071 commit 13c1f11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ if [[ $# -ne 1 ]]; then
exit 2
fi

dest_dir="$1"
dest_dir=$(realpath "$1")

if [[ ! -d "$dest_dir" ]]; then
echo "${dest_dir} doesn't exist; aborting."
Expand All @@ -29,7 +29,7 @@ fi

set -e # die on any error

opendylan_dir=$(realpath "$0/../..")
opendylan_dir=$(dirname $(dirname $(realpath "$0")))

# Get latest gendoc, DRM, etc, as specified in dylan-package.json.
echo "Updating the Dylan workspace to get latest package dependencies..."
Expand Down

0 comments on commit 13c1f11

Please sign in to comment.