mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
19 lines
283 B
Bash
Executable File
19 lines
283 B
Bash
Executable File
#!/bin/bash
|
|
display_error() {
|
|
tput sgr0
|
|
tput setaf 1
|
|
echo "ERROR: $1" >&2
|
|
tput sgr0
|
|
exit 1
|
|
}
|
|
|
|
echo "
|
|
gvm gos (available)
|
|
"
|
|
curl -s https://go.googlecode.com/hg/.hgtags | awk '{ print $2 }'
|
|
if [[ $? -ne 0 ]]; then
|
|
display_error "Failed to get version list from Google"
|
|
fi
|
|
echo
|
|
|