Skip to content

Commit 1783203

Browse files
author
k9ert
authored
fix org_name (#2450)
1 parent b43993d commit 1783203

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/generate_downloadpage.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function update_github {
9292

9393
function update_webpage {
9494
if [[ $version =~ -pre[0-9]+$ ]]; then
95-
if [[ "$org_name" = "swan-bitcoin" ]]; then
95+
if [[ "$static_repo_org_name" = "swan-bitcoin" ]]; then
9696
echo "The version has a pre-release suffix. Exiting..."
9797
return 0
9898
fi
@@ -101,7 +101,7 @@ function update_webpage {
101101
if ! [[ -d ../../specter-static ]]; then
102102
echo "You don't have cloned the specter-static repo."
103103
echo "doing that now"
104-
git clone [email protected]:swan-bitcoin/specter-static.git
104+
git clone [email protected]:${static_repo_org_name}/specter-static.git
105105
specter_static_folder=./specter-static
106106
else
107107
specter_static_folder=../../specter-static
@@ -198,7 +198,9 @@ while [[ $# -gt 0 ]]
198198
done
199199

200200
if [[ "$org_name" = "cryptoadvance" ]]; then
201-
org_name=swan-bitcoin # that's where the original specter-static is hosted
201+
static_repo_org_name=swan-bitcoin # that's where the original specter-static is hosted
202+
else
203+
static_repo_org_name=$org_name # test-repos are assumed to be hosted in the same org than the specter-desktop repo
202204
fi
203205

204206
if [[ -z "$version" ]]; then

0 commit comments

Comments
 (0)