Skip to content

Commit

Permalink
remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Oct 12, 2024
1 parent 749f553 commit 146d55e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/aws/dependencies/detectIncompleteState.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,7 @@ detectIncompleteState() {
# Bit 0 -> keyPairExists
local binaryState=$(((instanceExists << 2) | (securityGroupExists << 1) | keyPairExists))

echo "Binary state (in binary): $(echo "obase=2; $binaryState" | bc)"
#echo "Binary state (in binary): $(echo "obase=2; $binaryState" | bc)"
return $binaryState
}

detectIncompleteState "luftballon" "luftballons-sg" "luftballon"
binaryState=$?

# Analyze each bit
if instanceExists $binaryState; then
echo "Instance exists."
fi
if securityGroupExists $binaryState; then
echo "Security Group exists."
fi
if keyPairExists $binaryState; then
echo "Key Pair exists."
fi

0 comments on commit 146d55e

Please sign in to comment.