Skip to content

Commit

Permalink
fix(install): done
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Jul 15, 2024
1 parent 0399256 commit ba4f0a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions setup/install.ab
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { has_failed, exit } from "std/env"
import { chars, includes } from "std/text"
import { chars } from "std/text"
import { includes } from "std/array"
import { file_exist } from "std/fs"
import { get_os, get_arch, get_place, get_bins_folder } from "./shared.ab"

let name = "AmberNative"
Expand Down Expand Up @@ -115,7 +117,7 @@ main(args) {

// Delete the previous symbolic link
if file_exist("{bins_folder}/{target}") {
${sudo} rm "{bins_folder}/{target}" failed {
${sudo} rm "{bins_folder}/{target}"$ failed {
echo "Failed to remove the previous amber symbol link."
echo "Please make sure that root user can access {bins_folder} directory."
exit(1)
Expand Down
3 changes: 2 additions & 1 deletion setup/shared.ab
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { exit, includes, has_failed } from "std"
import { has_failed, exit } from "std/env"
import { includes } from "std/array"

pub fun get_os(): Text {
// Determine OS type
Expand Down

0 comments on commit ba4f0a9

Please sign in to comment.