Skip to content

Commit eb8987a

Browse files
committed
Merge branch 'hackathon-install-scripts' of https://github.com/gpu-mode/popcorn-cli into hackathon-install-scripts
2 parents 5028027 + 2961e46 commit eb8987a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
submission.*
22
target/
3-
rust/Cargo.lock
4-
scratch.md
3+
scratch.md

install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ fi
2222

2323
# Detect OS
2424
OS=""
25-
ARCH=""
2625
BINARY_NAME=""
2726
EXTENSION=""
2827

src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ use std::process;
1111
#[tokio::main]
1212
async fn main() {
1313
// Set the API URL FIRST - before anything else
14-
env::set_var("POPCORN_API_URL", "https://discord-cluster-manager-1f6c4782e60a.herokuapp.com");
15-
14+
if env::var("POPCORN_API_URL").is_err() {
15+
env::set_var("POPCORN_API_URL", "https://discord-cluster-manager-1f6c4782e60a.herokuapp.com");
16+
}
1617
// Parse command line arguments
1718
let cli = Cli::parse();
1819

0 commit comments

Comments
 (0)