From ee13fd5b62fd8b1440a06975d2a791b417e00229 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Mon, 29 May 2023 00:32:37 -0300 Subject: [PATCH] namespaces: move clone command under 'portzap' namespace --- bin/portzap | 4 ++-- libexec/portzap/commands/{clone => portzap-clone} | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename libexec/portzap/commands/{clone => portzap-clone} (79%) diff --git a/bin/portzap b/bin/portzap index cd26b56..75823e2 100755 --- a/bin/portzap +++ b/bin/portzap @@ -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 diff --git a/libexec/portzap/commands/clone b/libexec/portzap/commands/portzap-clone similarity index 79% rename from libexec/portzap/commands/clone rename to libexec/portzap/commands/portzap-clone index 31ab4f6..023752c 100644 --- a/libexec/portzap/commands/clone +++ b/libexec/portzap/commands/portzap-clone @@ -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