namespaces: move clone command under 'portzap' namespace

This commit is contained in:
0x1eef 2023-05-29 00:32:37 -03:00
parent 7917204769
commit ee13fd5b62
2 changed files with 4 additions and 4 deletions

View file

@ -14,7 +14,7 @@ pull_mask=007
# Commands
. $libexec_dir/commands/portzap-install
. $libexec_dir/commands/pull
. $libexec_dir/commands/clone
. $libexec_dir/commands/portzap-clone
# Functions
. $libexec_dir/functions/requirements.sh
@ -23,7 +23,7 @@ case $1 in
"clone")
require_deps git
require_group _portzap
clone $portzap_dir $ports_url $clone_mask
portzap_clone $portzap_dir $ports_url $clone_mask
;;
"pull")
require_deps git

View file

@ -1,12 +1,12 @@
#!/bin/sh
clone() {
portzap_clone() {
portzap_dir=$1
ports_url=$2
clone_mask=$3
if [ -e "$portzap_dir/.git" ]; then
echo "$portzap_dir has already been cloned."
echo "$portzap_dir exists."
echo "Run 'portzap pull' instead."
exit 1
fi