From 3664c0b3a4b16167f1e7dc8b8d41888c51fae691 Mon Sep 17 00:00:00 2001 From: xargon Date: Sun, 10 Jul 2022 11:17:46 +0200 Subject: [PATCH] Updated flathub push script --- flathub-push.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) mode change 100644 => 100755 flathub-push.sh diff --git a/flathub-push.sh b/flathub-push.sh old mode 100644 new mode 100755 index 56f4135f..1d8451d7 --- a/flathub-push.sh +++ b/flathub-push.sh @@ -1,5 +1,7 @@ #!/bin/bash +branch="cooker-"$(date +%d%m%y.%H%M) + cd ~/gits rm -rf flathub git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub @@ -12,6 +14,7 @@ git submodule update #sync -rav --progress --exclude={'res/screenshots/','shared-modules/','rd-submodules/retroarch','.git/','docs','retrodeck-flatpak/','retrodeck-flatpak-cooker/','.flatpak-builder/'} ~/RetroDECK/ ~/flathub/ cd ~/gits/flathub +git checkout -b $branch git rm -rf * git clean -fxd # restroing git index @@ -68,4 +71,4 @@ git submodule deinit -f . git submodule update --init --recursive git add * git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/main" -git push origin cooker-$(date +%d%m%y.%H%M) \ No newline at end of file +git push origin $branch \ No newline at end of file