diff options
| author | 2025-10-26 08:41:47 +0100 | |
|---|---|---|
| committer | 2025-10-26 08:41:47 +0100 | |
| commit | e9f30fa5de22c82a164e364d602e80975635e454 (patch) | |
| tree | 575b16ad5ec2dd4644487fdfe387b3948616cc55 /src | |
| parent | 7dd18234861d3de62e1ddd2887f7bdb9e2b891c6 (diff) | |
Better error handling
Diffstat (limited to 'src')
| -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 |
