You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: setup/install.ab
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
import { has_failed, input } from "std/env"
2
-
import { chars } from "std/text"
3
-
import { includes } from "std/array"
4
-
import { file_exist } from "std/fs"
1
+
import { has_failed, input_prompt } from "std/env"
2
+
import { split_chars } from "std/text"
3
+
import { array_contains } from "std/array"
4
+
import { file_exists } from "std/fs"
5
5
import { get_os, get_arch, get_place, get_bins_folder } from "./shared.ab"
6
6
7
7
let name = "amber"
@@ -28,7 +28,7 @@ main(args) {
28
28
let os = get_os()
29
29
let arch = get_arch()
30
30
31
-
let user_only_install = includes(args, "--user")
31
+
let user_only_install = array_contains(args, "--user")
32
32
let place = get_place(user_only_install)
33
33
let bins_folder = get_bins_folder(user_only_install)
34
34
@@ -116,7 +116,7 @@ main(args) {
116
116
}
117
117
118
118
// Delete the previous symbolic link
119
-
if file_exist("{bins_folder}/{target}") {
119
+
if file_exists("{bins_folder}/{target}") {
120
120
$ {sudo} rm "{bins_folder}/{target}" $ failed {
121
121
echo "Failed to remove the previous amber symbol link."
122
122
echo "Please make sure that root user can access {bins_folder} directory."
@@ -131,7 +131,7 @@ main(args) {
131
131
exit 1
132
132
}
133
133
134
-
let nickname = input("Would you like to help improve Amber by sharing your OS info with our developer database? Enter your GitHub nickname (or any nickname) or type `no`:")
134
+
let nickname = input_prompt("Would you like to help improve Amber by sharing your OS info with our developer database? Enter your GitHub nickname (or any nickname) or type `no`:")
0 commit comments