You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
449 B
Plaintext
19 lines
449 B
Plaintext
11 years ago
|
#!/usr/bin/env bash
|
||
|
. "$GVM_ROOT/scripts/functions"
|
||
|
|
||
|
[[ $1 != "" ]] ||
|
||
|
display_fatal "Please specifiy the name"
|
||
|
|
||
|
[[ -f $GVM_ROOT/environments/$1 ]] ||
|
||
|
display_fatal "Alias doesn't exist!"
|
||
|
|
||
|
$GREP_PATH "gvm_alias_name" "$GVM_ROOT/environments/$1" > /dev/null ||
|
||
|
display_fatal "$1 is not an alias!"
|
||
|
|
||
|
rm -rf "$GVM_ROOT/environments/$1" ||
|
||
|
display_fatal "Could not delete alias"
|
||
|
|
||
|
rm -rf "$GVM_ROOT/gos/$1" ||
|
||
|
display_fatal "Could not delete alias"
|
||
|
|