summarylogtreecommitdiffstats
path: root/axecore.install
blob: 2a2fae90055df997e91cd14f9a0001053946853b (plain)
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
post_upgrade() {
  msg2 "If you see a 'No block source available' message in the bottom-left corner of the application, close the application, wait 30 seconds, then relaunch it from Terminal with the command `axe-qt -reindex &disown`";
};

_msg() {
  _green "==> ";
  _white "$@";
  tput sgr 0;
};

_msg2() {
  _blue "  -> ";
  _white "$@";
  tput sgr 0;
};

_green() {
  _color "2" "${1}";
};

_blue() {
  _color "4" "${1}";
};

_white() {
  _color "7";
  for line; do
    echo "${line}" ;
  done ;
};

_color() {
  tput bold;
  tput setaf "${1}";

  if ! [ "${2}" ]; then
    return;
  fi;

  printf "%s" "${2}";
};

# vim: ts=2 sw=2 et: