Skip to content

Commit

Permalink
fix org_name (#2450)
Browse files Browse the repository at this point in the history
  • Loading branch information
k9ert authored May 30, 2024
1 parent b43993d commit 1783203
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions utils/generate_downloadpage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function update_github {

function update_webpage {
if [[ $version =~ -pre[0-9]+$ ]]; then
if [[ "$org_name" = "swan-bitcoin" ]]; then
if [[ "$static_repo_org_name" = "swan-bitcoin" ]]; then
echo "The version has a pre-release suffix. Exiting..."
return 0
fi
Expand All @@ -101,7 +101,7 @@ function update_webpage {
if ! [[ -d ../../specter-static ]]; then
echo "You don't have cloned the specter-static repo."
echo "doing that now"
git clone [email protected]:swan-bitcoin/specter-static.git
git clone [email protected]:${static_repo_org_name}/specter-static.git
specter_static_folder=./specter-static
else
specter_static_folder=../../specter-static
Expand Down Expand Up @@ -198,7 +198,9 @@ while [[ $# -gt 0 ]]
done

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

if [[ -z "$version" ]]; then
Expand Down

0 comments on commit 1783203

Please sign in to comment.