Skip to content

Commit

Permalink
kick again
Browse files Browse the repository at this point in the history
  • Loading branch information
Kim Neunert committed May 28, 2024
1 parent 3de9673 commit bf24adb
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions utils/generate_downloadpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,7 @@ function prereq {
echo " --> The 'markdown' package is already installed."
fi

# Check if 'gh' is already installed
if command -v gh &> /dev/null; then
echo "GitHub CLI is already installed."
else
echo "GitHub CLI is not installed."

# Detect the platform (Linux or Darwin/macOS)
platform=$(uname -s)

case "$platform" in
Linux) install_gh_linux ;;
Darwin) install_gh_macos ;;
*)
echo "Unsupported platform: $platform"
exit 1
;;
esac
fi
}

function clean {
Expand Down Expand Up @@ -244,7 +227,25 @@ if [[ "$generate" = "True" ]]; then
fi

if [[ "$change_github" = "True" ]]; then
update_github
# Check if 'gh' is already installed
if command -v gh &> /dev/null; then
echo "GitHub CLI is already installed."
else
echo "GitHub CLI is not installed."

# Detect the platform (Linux or Darwin/macOS)
platform=$(uname -s)

case "$platform" in
Linux) install_gh_linux ;;
Darwin) install_gh_macos ;;
*)
echo "Unsupported platform: $platform"
exit 1
;;
esac
fi
update_github
fi

if [[ "$change_webpage" = "True" ]]; then
Expand Down

0 comments on commit bf24adb

Please sign in to comment.