From d9bcc43ccd177ef13d65bd1ba7a9b534f4ad9219 Mon Sep 17 00:00:00 2001 From: XargonWan <6771419+XargonWan@users.noreply.github.com> Date: Sun, 4 Sep 2022 15:06:59 +0200 Subject: [PATCH] Updated flathub push script --- flathub-push.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/flathub-push.sh b/flathub-push.sh index f6034bf6..f417c6b6 100755 --- a/flathub-push.sh +++ b/flathub-push.sh @@ -1,14 +1,19 @@ #!/bin/bash -branch="main-"$(date +%d%m%y.%H%M) +# EDITABLES: +#rd_branch="main" +rd_branch="cooker" #gits_folder=~/gits gits_folder="/home/public-folder/gits" # without last / +# NON-EDITABLES +branch="$rd_branch-"$(date +%d%m%y.%H%M) + cd $gits_folder rm -rf flathub git clone --recursive https://github.com/flathub/net.retrodeck.retrodeck.git flathub cd $gits_folder/RetroDECK -git checkout main +git checkout $rd_branch git submodule init git submodule update # NOTE: the only linked submodules are: rd-submodules/retroarch @@ -73,5 +78,5 @@ git submodule deinit -f . # checkout again git submodule update --init --recursive git add * -git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/main" +git commit -m "Updated flathub/net.retrodeck.retrodeck from RetroDECK/$rd_branch" git push origin $branch \ No newline at end of file