summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/init6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init b/src/init
index d02c19a..f2ea8de 100755
--- a/src/init
+++ b/src/init
@@ -53,13 +53,13 @@ end
function setupRepo
set -l repoConfig $argv[1]
- set -l parsedConfig (string split ':' $repoConfig)
+ set -l parsedConfig (string split ':' -- $repoConfig)
set -l repo $parsedConfig[1]
# check repo name
- set -l matcher (string match -r -g "^$_REPO_VALIDATION_REGEX\$" $repo)
+ set -l matcher (string match -r -g "^$_REPO_VALIDATION_REGEX\$" -- $repo)
if test -z $matcher[1]
- echo "Failed to setup repo, invalid path/name: $repo"
+ echo "Failed to setup repo, invalid config: $repoConfig"
return 1
end