Files
gvm/scripts/pkgset-delete
T

18 lines
310 B
Bash
Executable File

#!/bin/bash
if [[ $gvm_go_name == "" ]]; then
echo "ERROR: No Go version selected"
exit 1
fi
if [[ -n $1 ]]; then
rm -rf $GVM_ROOT/pkgsets/$gvm_go_name/$1
if [[ $? -ne 0 ]]; then
echo "ERROR: Could not delete package set"
exit 1
fi
else
echo "ERROR: Please specifiy the name"
exit 1
fi