From 17f7897516d24615eb3df0bd978ac289d66bb6a1 Mon Sep 17 00:00:00 2001 From: Maximilian Luz Date: Wed, 20 Oct 2021 19:59:45 +0200 Subject: [PATCH] pkd/debian: Fix repo update code The git version on Debian doesn't recognize the `switch` command. Use `checkout` instead. --- .github/scripts/repo-debian.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/scripts/repo-debian.sh b/.github/scripts/repo-debian.sh index 3ddf8ce..1874642 100755 --- a/.github/scripts/repo-debian.sh +++ b/.github/scripts/repo-debian.sh @@ -31,7 +31,7 @@ git config --global user.name "surfacebot" # commit and push rnd="$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1)" update_branch="${BRANCH_STAGING}-${rnd}" -git switch -c "${update_branch}" +git checkout -b "${update_branch}" git add . git commit -m "Update Debian $NAME package" git push --set-upstream origin "${update_branch}"