diff options
author | dweller <dweller@cabin.digital> | 2024-03-09 02:50:22 +0200 |
---|---|---|
committer | dweller <dweller@cabin.digital> | 2024-03-09 02:50:22 +0200 |
commit | 9b9bda8bb3700b25007a1b78958a2a4ac7c2f9cb (patch) | |
tree | 894a24c89afdff8eae712307bc186b83cd6b0044 /git-descremote |
Initial commit
Diffstat (limited to 'git-descremote')
-rwxr-xr-x | git-descremote | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/git-descremote b/git-descremote new file mode 100755 index 0000000..e7c0a78 --- /dev/null +++ b/git-descremote @@ -0,0 +1,19 @@ +#!/bin/sh +# Copyright (C) 2024 dwlr <dweller@cabin.digital> +# +# BSD 3-Clause License (BSD-3-Clause) +# See LICENSE for details + +set -e + + +if [ $# -lt 3 ]; then + echo "Usage: $0 <server> <repo name> <description>" + exit 1; +fi + +serv=$1 +repo=$2 +shift 2 + +ssh "$serv" setdesc "$repo" "$@" |