mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 12:56:41 +10:00
20 lines
487 B
Bash
Executable File
20 lines
487 B
Bash
Executable File
#!/bin/bash
|
|
. $GVM_ROOT/scripts/functions
|
|
|
|
[[ "$1" == "" ]] &&
|
|
display_error "Please specifiy the version"
|
|
|
|
fuzzy_match=`ls $GVM_ROOT/gos | grep "$1"` ||
|
|
display_error "Invalid version $1"
|
|
|
|
if [ -d $GVM_ROOT/gos/$fuzzy_match ]; then
|
|
rm -rf $GVM_ROOT/gos/$fuzzy_match
|
|
rm -rf $GVM_ROOT/pkgsets/$fuzzy_match
|
|
rm -f $GVM_ROOT/environments/$fuzzy_match
|
|
rm -f "$GVM_ROOT/environments/$fuzzy_match@"*
|
|
echo "Uninstalled version $fuzzy_match"
|
|
else
|
|
display_error "Invalid version"
|
|
fi
|
|
|