From e9f30fa5de22c82a164e364d602e80975635e454 Mon Sep 17 00:00:00 2001 From: Matthias Lucas Jaros Date: Sun, 26 Oct 2025 08:41:47 +0100 Subject: Better error handling --- src/init | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.3.1