Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
debug error
Browse files Browse the repository at this point in the history
  • Loading branch information
Jin-Sun-tts committed Jan 12, 2024
1 parent 3e90bf5 commit c94ea8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create-space-drain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ drain_space=${1:-management}
drain_name=${2:-logstack-shipper}
prefix=${3:-logstack}

# If the app already exists, exit early/successfully
cf app "${prefix}-space-drain" > /dev/null 2>&1 && echo "Drain already exists." && exit 0

# install drain plugin if it isn't installed
if ! cf plugins | grep -q drain; then
echo "cf-drain-cli plugin not found. Installing..."
Expand All @@ -28,9 +31,6 @@ else
echo "cf-drain-cli plugin already exists."
fi

# If the app already exists, exit early/successfully
cf app "${prefix}-space-drain" > /dev/null 2>&1 && echo "Drain already exists." && exit 0

space=$(cf target | grep space: | cut -d : -f 2 | sed s/\ //g)

# Grab the credentials and route from the management space, then switch back
Expand Down

0 comments on commit c94ea8e

Please sign in to comment.