summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authorGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-26 08:41:47 +0100
committerGravatar Matthias Lucas Jaros <jarlucmat@mailbox.org>2025-10-26 08:41:47 +0100
commite9f30fa5de22c82a164e364d602e80975635e454 (patch)
tree575b16ad5ec2dd4644487fdfe387b3948616cc55 /src/init
parent7dd18234861d3de62e1ddd2887f7bdb9e2b891c6 (diff)
Better error handling
Diffstat (limited to 'src/init')
-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