Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(std): more commands #185

Merged
merged 23 commits into from
Jul 1, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(test): download
Mte90 committed Jun 20, 2024
commit 2cd0256aa7571d7e58ca7f6ad12eb3d42a8c17a3
6 changes: 3 additions & 3 deletions src/std/main.ab
Original file line number Diff line number Diff line change
@@ -173,13 +173,13 @@ pub fun switch_user_permission(user: Text, path: Text): Bool {

pub fun download(url: Text, path: Text): Bool {
if {
not is_command("curl") {
is_command("curl") {
unsafe $curl -o "{path}" "{url}"$
}
not is_command("wget") {
is_command("wget") {
unsafe $wget "{url}" -P "{path}"$
}
not is_command("aria2c") {
is_command("aria2c") {
unsafe $aria2c "{url}" -d "{path}"$
}
else {