commit 386f01da2126f80ec1db85430da27d595a466a5f
parent 3394c5fa78844f646ce036858ccafb6cb2e1ebe8
Author: Louis Burda <quent.burda@gmail.com>
Date: Fri, 10 May 2024 01:59:49 +0200
Remove arugment check from subgit-write
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/subgit b/subgit
@@ -31,4 +31,4 @@ if [ -z "$(which "subgit-$cmd" 2>/dev/null)" ]; then
fi
trap 'echo "Error at during $cmd"' ERR
-( source "subgit-$cmd" "$@"; )
+( source "subgit-$cmd"; )
diff --git a/subgit-write b/subgit-write
@@ -1,7 +1,5 @@
#!/bin/bash
-[ $# -ne 0 ] && die "Usage: subgit init"
-
repo=$(realpath "$(git rev-parse --show-toplevel)")
echo -e "#!/bin/bash\n" > "$repo/.subgitrc"