mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
- Remove unecessary $(cat) - switch * to ./* to avoid entries with dashes to be treated as options - replace $* with "$@" - repeating change path serial calls - unecessary if change path is called one (get script)
26 lines
665 B
Bash
Executable File
26 lines
665 B
Bash
Executable File
#!/usr/bin/env bash
|
|
. "$GVM_ROOT/scripts/functions"
|
|
|
|
[[ $gvm_go_name != "" ]] ||
|
|
display_fatal "No Go version selected"
|
|
|
|
[[ $1 != "" ]] ||
|
|
display_fatal "Please specifiy the name"
|
|
|
|
target_top=$GVM_ROOT
|
|
target_set_name=$1
|
|
if [[ $1 == "--local" ]]; then
|
|
target_top=$(find_local_pkgset)/.gvm_local
|
|
target_set_name="local"
|
|
fi
|
|
|
|
[[ -d $target_top/pkgsets/$gvm_go_name/$target_set_name ]] ||
|
|
display_fatal "Packageset doesn't exist!"
|
|
|
|
rm -rf "$target_top/pkgsets/$gvm_go_name/$target_set_name" ||
|
|
display_fatal "Could not delete package set"
|
|
|
|
rm -rf "$target_top/environments/$gvm_go_name@$target_set_name" ||
|
|
display_fatal "Could not delete package set"
|
|
|