Skip to content

Commit

Permalink
surprise. api.github.com has rate limit
Browse files Browse the repository at this point in the history
  • Loading branch information
woensug-choi committed Jun 17, 2024
1 parent a566115 commit 42a3c63
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions gz_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ GZ_INSTALL_ROOT=${GZ_INSTALL_ROOT:-$GZ_INSTALL_ROOT_DEFAULT}
VIRTUAL_ENV_ROOT=${VIRTUAL_ENV_ROOT:-$VIRTUAL_ENV_ROOT_DEFAULT}

# Get Current Version hash
LATEST_COMMIT_HASH=$(curl -s "https://api.github.com/repos/IOES-Lab/ROS2_Jazzy_MacOS_Native_AppleSilicon/commits/main" | \
grep '"sha":' | \
head -n 1 | \
awk -F '"' '{print $4}' | \
cut -c1-7)
LATEST_COMMIT_HASH=$(curl -s "https://github.com/IOES-Lab/ROS2_Jazzy_MacOS_Native_AppleSilicon/commits/main" | \
grep -o 'commit/[0-9a-f]*' | \
head -n 1 | \
cut -d'/' -f2 | \
cut -c1-7)

# ------------------------------------------------------------------------------
# Initiation
Expand Down
10 changes: 5 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ ROS_INSTALL_ROOT=${ROS_INSTALL_ROOT:-$ROS_INSTALL_ROOT_DEFAULT}
VIRTUAL_ENV_ROOT=${VIRTUAL_ENV_ROOT:-$VIRTUAL_ENV_ROOT_DEFAULT}

# Get Current Version hash
LATEST_COMMIT_HASH=$(curl -s "https://api.github.com/repos/IOES-Lab/ROS2_Jazzy_MacOS_Native_AppleSilicon/commits/main" | \
grep '"sha":' | \
head -n 1 | \
awk -F '"' '{print $4}' | \
cut -c1-7)
LATEST_COMMIT_HASH=$(curl -s "https://github.com/IOES-Lab/ROS2_Jazzy_MacOS_Native_AppleSilicon/commits/main" | \
grep -o 'commit/[0-9a-f]*' | \
head -n 1 | \
cut -d'/' -f2 | \
cut -c1-7)

# ------------------------------------------------------------------------------
# Initiation
Expand Down

0 comments on commit 42a3c63

Please sign in to comment.