namespaces: move clone command under 'portzap' namespace
This commit is contained in:
parent
7917204769
commit
ee13fd5b62
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in a new issue