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
|
# Commands
|
||||||
. $libexec_dir/commands/portzap-install
|
. $libexec_dir/commands/portzap-install
|
||||||
. $libexec_dir/commands/pull
|
. $libexec_dir/commands/pull
|
||||||
. $libexec_dir/commands/clone
|
. $libexec_dir/commands/portzap-clone
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
. $libexec_dir/functions/requirements.sh
|
. $libexec_dir/functions/requirements.sh
|
||||||
|
@ -23,7 +23,7 @@ case $1 in
|
||||||
"clone")
|
"clone")
|
||||||
require_deps git
|
require_deps git
|
||||||
require_group _portzap
|
require_group _portzap
|
||||||
clone $portzap_dir $ports_url $clone_mask
|
portzap_clone $portzap_dir $ports_url $clone_mask
|
||||||
;;
|
;;
|
||||||
"pull")
|
"pull")
|
||||||
require_deps git
|
require_deps git
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
clone() {
|
portzap_clone() {
|
||||||
portzap_dir=$1
|
portzap_dir=$1
|
||||||
ports_url=$2
|
ports_url=$2
|
||||||
clone_mask=$3
|
clone_mask=$3
|
||||||
|
|
||||||
if [ -e "$portzap_dir/.git" ]; then
|
if [ -e "$portzap_dir/.git" ]; then
|
||||||
echo "$portzap_dir has already been cloned."
|
echo "$portzap_dir exists."
|
||||||
echo "Run 'portzap pull' instead."
|
echo "Run 'portzap pull' instead."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
Loading…
Reference in a new issue