Remove the leftovers of 'portzap rmtree'

This commit is contained in:
0x1eef 2023-01-15 19:51:18 -03:00 committed by Robert
parent 54124d2d9f
commit f73d409d20
2 changed files with 3 additions and 11 deletions

View file

@ -24,10 +24,6 @@ is maintained as a git repository, and portzap allows the repository to be clone
This command should be run as root. <br>
The command copies `/tmp/ports` to `/usr/ports`.
* **portzap rmtree** <br>
This command can be run as root, or a regular user. <br>
The command removes `/tmp/ports`.
## Sources
* [Source code (GitHub)](https://github.com/0x1eef/portzap)

View file

@ -48,14 +48,14 @@ user_is_not_root() {
# Commands
help() {
echo "Usage: portzap init|clone|pull|unpack|rmtree"
echo "Usage: portzap init|clone|pull|unpack"
}
init() {
if user_is_not_root;
then
echo "The init command should be run as root."
exit
exit 1
fi;
umask $init_mode
pw userdel _portzap -r
@ -68,7 +68,7 @@ clone() {
if [ -e "$stage_dir/.git" ];
then
echo "$stage_dir has already been cloned."
echo "Run 'portzap pull', or 'portzap rmtree' instead."
echo "Run 'portzap pull' instead."
exit 1
fi
umask $clone_mode
@ -124,10 +124,6 @@ case $1 in
unpack
break
;;
"rmtree")
rmtree
break
;;
*)
help
break