File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -6,26 +6,26 @@ set -eu -o pipefail
66# before making any changes to the repository
77
88check_command () {
9- if ! command -v " $1 " & > /dev/null; then
9+ if ! command -v " $1 " & > /dev/null; then
1010 echo " Error: $1 is not installed or not in PATH"
1111 exit 1
1212 fi
1313}
1414
1515# Verify gh CLI is authenticated
16- if ! gh auth status & > /dev/null; then
16+ if ! gh auth status & > /dev/null; then
1717 echo " Error: gh CLI is not authenticated. Run 'gh auth login' first."
1818 exit 1
1919fi
2020
2121# Verify we can access this repository via gh
22- if ! gh repo view --json name & > /dev/null; then
22+ if ! gh repo view --json name & > /dev/null; then
2323 echo " Error: Cannot access repository via gh. Check your authentication and repository access."
2424 exit 1
2525fi
2626
2727# Verify git can connect to the remote (catches SSH key issues, etc.)
28- if ! git ls-remote origin & > /dev/null; then
28+ if ! git ls-remote origin & > /dev/null; then
2929 echo " Error: Cannot connect to git remote. Check your git credentials/SSH keys."
3030 exit 1
3131fi
@@ -93,7 +93,7 @@ git diff
9393echo $' \n Release notes:'
9494echo " $notes "
9595
96- read -e -p " Commit changes and create release? (y/n) " should_continue
96+ read -r - e -p " Commit changes and create release? (y/n) " should_continue
9797
9898if [ " $should_continue " != " y" ]; then
9999 echo " Aborting"
You can’t perform that action at this time.
0 commit comments