diff options
| -rwxr-xr-x | src/init | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |
