summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-02-18 09:24:15 +0100
committerErich Eckner <git@eckner.net>2020-02-18 09:24:15 +0100
commit114aed2a8d54c93eeac1d28c4d3e9c3db64306df (patch)
tree3a5324dc5bca8e29d390ffa1d0807b19bc9c9f1c
parentfbb92398cc71d774418457ac85d312f6f71137fc (diff)
downloadarchlinuxewe-114aed2a8d54c93eeac1d28c4d3e9c3db64306df.tar.xz
update-submodule: fix parameter parsing
-rwxr-xr-xupdate-submodule8
1 files changed, 3 insertions, 5 deletions
diff --git a/update-submodule b/update-submodule
index 3bd04b7a4..e1ea58aa8 100755
--- a/update-submodule
+++ b/update-submodule
@@ -1,10 +1,8 @@
#!/bin/bash
-url="$1"
-pkgSrcDir="${url%% *}"
-url="${url#${path} }"
-submoduleDir="${url%% *}"
-url="${url#${path} }"
+pkgSrcDir="$1"
+submoduleDir="$2"
+url="$3"
path="${url%% *}"
url="${url#${path} }"