Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Thanhphan1147 committed Dec 2, 2023
1 parent c403383 commit f193735
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions jenkins_agent_snap/hooks/configure
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ handle_jenkins_url_config()
jenkins_url="$(jenkins_url)"

# Validate URL
# if ! expr "$http_port" : '^[0-9]\+$' > /dev/null; then
# echo "\"$http_port\" is not a valid HTTP port" >&2
# if ! expr "$jenkins_url" : '^[0-9]\+$' > /dev/null; then
# return 1
# fi

Expand All @@ -25,8 +24,7 @@ handle_jenkins_agent_config()
jenkins_agent="$(jenkins_agent)"

# Validate agent
# if ! expr "$http_port" : '^[0-9]\+$' > /dev/null; then
# echo "\"$http_port\" is not a valid HTTP port" >&2
# if ! expr "$jenkins_agent" : '^[0-9]\+$' > /dev/null; then
# return 1
# fi

Expand All @@ -42,8 +40,7 @@ handle_jenkins_token_config()
jenkins_token="$(jenkins_token)"

# Validate Token
# if ! expr "$http_port" : '^[0-9]\+$' > /dev/null; then
# echo "\"$http_port\" is not a valid HTTP port" >&2
# if ! expr "$jenkins_token" : '^[0-9]\+$' > /dev/null; then
# return 1
# fi

Expand Down

0 comments on commit f193735

Please sign in to comment.