-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathoutput_helpers.sh
More file actions
executable file
·64 lines (50 loc) · 1.23 KB
/
output_helpers.sh
File metadata and controls
executable file
·64 lines (50 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/bash
BLUE="\033[94m"
GREY="\033[90m"
RED="\033[31m"
RESET="\033[0m"
function separator {
echo "--------------------------------------------------------------------------------------------------------"
}
function header {
echo ""
separator
echo -e $BLUE$1$RESET
separator
}
function line {
echo ""
}
function info {
echo -e $GREY$1$RESET
}
function error {
echo -e $RED$1$RESET
}
function sjekkLaunchAgentsRettigheterOK {
info "Har korrekte rettigheter"
}
function sjekkLaunchAgentsRettigheterFail {
error "Har ikke korrekte rettigheter til LaunchAgents"
}
function sjekkAndroidHomeOK {
info "ANDROID_HOME satt til $ANDROID_HOME"
}
function sjekkAndroidHomeFail {
error "ANDROID_HOME miljøvariabel er ikke satt, legg følgende i .bashrc/.bash_profile".
info " export ANDROID_HOME=~/ANDROID_HOME"
info " export PATH=\$ANDROID_HOME/platform-tools:\$PATH"
info " export PATH=\$ANDROID_HOME/tools:\$PATH"
}
function sjekkHarReactNativeOK {
info "react-native satt opp globalt"
}
function sjekkHarReactNativeFail {
error "react-native ikke innstallert globale"
}
function sjekkEmulatorKjorerOK {
info "Fant kjørende device"
}
function sjekkEmulatorKjorerFail {
error "Fant ingen kjørende device"
}