~sircmpwn/sr.ht-packages

sr.ht-pkgbuilds: Fix ssh command breaking the while loop v2 PROPOSED

Thorben Günther: 1
 Fix ssh command breaking the while loop

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-packages/patches/11823/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sr.ht-pkgbuilds v2] Fix ssh command breaking the while loop Export this patch

---
This uses the built in ability of ssh to prevent reading from ssh.
 pkgkit | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkgkit b/pkgkit
index a8c5187..9bb2bdf 100755
--- a/pkgkit
+++ b/pkgkit
@@ -114,7 +114,7 @@ upload_pkg() (
	pkgfile="$2"

	path="$remote_path/$repo"
	ssh "$remote" mkdir -p "$path"
	ssh -n "$remote" mkdir -p "$path"

	local -
	set -x
@@ -123,7 +123,7 @@ upload_pkg() (

	rsync --blocking-io -rsP \
		"$pkgfile"{,.sig} "$remote":"$path/"
	ssh "$remote" repo-add -R \
	ssh -n "$remote" repo-add -R \
		"$path/$repo.db.tar.gz" \
		"$path/${pkgfile##*/}"
)
--
2.28.0