7c408d6d70
Signed-off-by: Billy Brawner <billy@wbrawner.com>
15 lines
223 B
Bash
Executable file
15 lines
223 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
if [[ -z "$1" ]]; then
|
|
echo "Please enter a repository name"
|
|
exit 1
|
|
fi
|
|
|
|
if [[ ! -d "$1.git" ]]; then
|
|
echo "Repo $1 doesn't exist"
|
|
exit 1
|
|
fi
|
|
|
|
rm -rf "$1.git"
|
|
echo "Successfully deleted repository $1"
|
|
|