Skip to content

Commit

Permalink
More descriptive error message for common repo close fail
Browse files Browse the repository at this point in the history
  • Loading branch information
alexchristy committed Jul 30, 2024
1 parent 94f5cc4 commit f9b4164
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ else
fi

# Navigate to the cloned repository directory
cd "$PIPELINE_REPO_PATH" || exit 1
if ! cd "$PIPELINE_REPO_PATH"; then
echo "Could not cd in repo directory. The repo was likely not cloned properly!"
echo "If this is a private repo, make sure to include a GitHub token."
exit 1
fi

# Ensure all shell scripts are executable
chmod +x ./*.sh
Expand Down

0 comments on commit f9b4164

Please sign in to comment.