summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2014-05-13 21:54:37 +0200
committerBoris Faure <billiob@gmail.com>2014-05-13 21:54:37 +0200
commiteb28d29bde123ff94c5c927614845f0e48ad22f4 (patch)
treef9235401edc68e2050cf825f05ec4ce7b6bf64bd /tools
parenta3c6b217b184aaa795205ac4d7c4a64b0d456a91 (diff)
tools: fix pacman to correctly run on bash. Closes T1248
Diffstat (limited to 'tools')
-rwxr-xr-xtools/pacman.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/pacman.sh b/tools/pacman.sh
index 0c34e2a..836b7da 100755
--- a/tools/pacman.sh
+++ b/tools/pacman.sh
@@ -1,7 +1,7 @@
1#!/bin/sh 1#!/usr/bin/env bash
2 2
3# ANSI Color -- use these variables to easily have different color 3# ANSI Color -- use these variables to easily have different color
4# and format output. Make sure to output the reset sequence after 4# and format output. Make sure to output the reset sequence after
5# colors (f = foreground, b = background), and use the 'off' 5# colors (f = foreground, b = background), and use the 'off'
6# feature for anything you turn on. 6# feature for anything you turn on.
7 7
@@ -11,7 +11,7 @@ initializeANSI()
11 blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m" 11 blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
12 yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m" 12 yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
13 cyanf="${esc}[36m"; whitef="${esc}[37m" 13 cyanf="${esc}[36m"; whitef="${esc}[37m"
14 14
15 blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m" 15 blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
16 yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m" 16 yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
17 cyanb="${esc}[46m"; whiteb="${esc}[47m" 17 cyanb="${esc}[46m"; whiteb="${esc}[47m"
@@ -27,7 +27,7 @@ initializeANSI()
27# note in this first use that switching colors doesn't require a reset 27# note in this first use that switching colors doesn't require a reset
28# first - the new color overrides the old one. 28# first - the new color overrides the old one.
29 29
30clear 30clear
31 31
32initializeANSI 32initializeANSI
33 33
@@ -39,7 +39,7 @@ cat << EOF
39 ${yellowf}███████▄${reset} ${redf}████████████${reset} ${greenf}████████████${reset} ${bluef}████████████${reset} ${purplef}████████████${reset} ${cyanf}████████████${reset} 39 ${yellowf}███████▄${reset} ${redf}████████████${reset} ${greenf}████████████${reset} ${bluef}████████████${reset} ${purplef}████████████${reset} ${cyanf}████████████${reset}
40 ${yellowf}▀█████████▄▄${reset} ${redf}██▀██▀▀██▀██${reset} ${greenf}██▀██▀▀██▀██${reset} ${bluef}██▀██▀▀██▀██${reset} ${purplef}██▀██▀▀██▀██${reset} ${cyanf}██▀██▀▀██▀██${reset} 40 ${yellowf}▀█████████▄▄${reset} ${redf}██▀██▀▀██▀██${reset} ${greenf}██▀██▀▀██▀██${reset} ${bluef}██▀██▀▀██▀██${reset} ${purplef}██▀██▀▀██▀██${reset} ${cyanf}██▀██▀▀██▀██${reset}
41 ${yellowf} ▀███████▀${reset} ${redf}▀ ▀ ▀ ▀${reset} ${greenf}▀ ▀ ▀ ▀${reset} ${bluef}▀ ▀ ▀ ▀${reset} ${purplef}▀ ▀ ▀ ▀${reset} ${cyanf}▀ ▀ ▀ ▀${reset} 41 ${yellowf} ▀███████▀${reset} ${redf}▀ ▀ ▀ ▀${reset} ${greenf}▀ ▀ ▀ ▀${reset} ${bluef}▀ ▀ ▀ ▀${reset} ${purplef}▀ ▀ ▀ ▀${reset} ${cyanf}▀ ▀ ▀ ▀${reset}
42 42
43 ${boldon}${yellowf} ▄███████▄ ${redf} ▄██████▄ ${greenf} ▄██████▄ ${bluef} ▄██████▄ ${purplef} ▄██████▄ ${cyanf} ▄██████▄${reset} 43 ${boldon}${yellowf} ▄███████▄ ${redf} ▄██████▄ ${greenf} ▄██████▄ ${bluef} ▄██████▄ ${purplef} ▄██████▄ ${cyanf} ▄██████▄${reset}
44 ${boldon}${yellowf}▄█████████▀▀ ${redf}▄${whitef}█▀█${redf}██${whitef}█▀█${redf}██▄ ${greenf}▄${whitef}█▀█${greenf}██${whitef}█▀█${greenf}██▄ ${bluef}▄${whitef}█▀█${bluef}██${whitef}█▀█${bluef}██▄ ${purplef}▄${whitef}█▀█${purplef}██${whitef}█▀█${purplef}██▄ ${cyanf}▄${whitef}█▀█${cyanf}██${whitef}█▀█${cyanf}██▄${reset} 44 ${boldon}${yellowf}▄█████████▀▀ ${redf}▄${whitef}█▀█${redf}██${whitef}█▀█${redf}██▄ ${greenf}▄${whitef}█▀█${greenf}██${whitef}█▀█${greenf}██▄ ${bluef}▄${whitef}█▀█${bluef}██${whitef}█▀█${bluef}██▄ ${purplef}▄${whitef}█▀█${purplef}██${whitef}█▀█${purplef}██▄ ${cyanf}▄${whitef}█▀█${cyanf}██${whitef}█▀█${cyanf}██▄${reset}
45 ${boldon}${yellowf}███████▀ ${redf}█${whitef}▄▄█${redf}██${whitef}▄▄█${redf}███ ${greenf}█${whitef}▄▄█${greenf}██${whitef}▄▄█${greenf}███ ${bluef}█${whitef}▄▄█${bluef}██${whitef}▄▄█${bluef}███ ${purplef}█${whitef}▄▄█${purplef}██${whitef}▄▄█${purplef}███ ${cyanf}█${whitef}▄▄█${cyanf}██${whitef}▄▄█${cyanf}███${reset} 45 ${boldon}${yellowf}███████▀ ${redf}█${whitef}▄▄█${redf}██${whitef}▄▄█${redf}███ ${greenf}█${whitef}▄▄█${greenf}██${whitef}▄▄█${greenf}███ ${bluef}█${whitef}▄▄█${bluef}██${whitef}▄▄█${bluef}███ ${purplef}█${whitef}▄▄█${purplef}██${whitef}▄▄█${purplef}███ ${cyanf}█${whitef}▄▄█${cyanf}██${whitef}▄▄█${cyanf}███${reset}