-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2efebb6
commit 944a7c7
Showing
4 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
#BASE=$HOME | ||
BASE=/home/pi | ||
|
||
function test(){ | ||
balloonName=$(setBalloonName "$1") | ||
if ! isBalloonNameValid "$balloonName"; then | ||
echo "Please provide a valid balloon name" | ||
exit 1 | ||
fi | ||
|
||
instanceId=$(getValueByAttribute $balloonName instanceId) | ||
|
||
if [ "$instanceId" = "null" ]; then | ||
echo "$balloonName is already deleted" | ||
exit 1 | ||
fi | ||
|
||
publicIp=$(getValueByAttribute $balloonName publicIp) | ||
|
||
echo $publicIp | ||
|
||
|
||
} |