tools: fix pacman to correctly run on bash. Closes T1248

This commit is contained in:
Boris Faure 2014-05-13 21:54:37 +02:00
parent a3c6b217b1
commit eb28d29bde
1 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh
#!/usr/bin/env bash
# ANSI Color -- use these variables to easily have different color
# and format output. Make sure to output the reset sequence after
# and format output. Make sure to output the reset sequence after
# colors (f = foreground, b = background), and use the 'off'
# feature for anything you turn on.
@ -11,7 +11,7 @@ initializeANSI()
blackf="${esc}[30m"; redf="${esc}[31m"; greenf="${esc}[32m"
yellowf="${esc}[33m" bluef="${esc}[34m"; purplef="${esc}[35m"
cyanf="${esc}[36m"; whitef="${esc}[37m"
blackb="${esc}[40m"; redb="${esc}[41m"; greenb="${esc}[42m"
yellowb="${esc}[43m" blueb="${esc}[44m"; purpleb="${esc}[45m"
cyanb="${esc}[46m"; whiteb="${esc}[47m"
@ -27,7 +27,7 @@ initializeANSI()
# note in this first use that switching colors doesn't require a reset
# first - the new color overrides the old one.
clear
clear
initializeANSI
@ -39,7 +39,7 @@ cat << EOF
${yellowf}███████▄${reset} ${redf}████████████${reset} ${greenf}████████████${reset} ${bluef}████████████${reset} ${purplef}████████████${reset} ${cyanf}████████████${reset}
${yellowf}▀█████████▄▄${reset} ${redf}██▀██▀▀██▀██${reset} ${greenf}██▀██▀▀██▀██${reset} ${bluef}██▀██▀▀██▀██${reset} ${purplef}██▀██▀▀██▀██${reset} ${cyanf}██▀██▀▀██▀██${reset}
${yellowf} ▀███████▀${reset} ${redf}▀ ▀ ▀ ▀${reset} ${greenf}▀ ▀ ▀ ▀${reset} ${bluef}▀ ▀ ▀ ▀${reset} ${purplef}▀ ▀ ▀ ▀${reset} ${cyanf}▀ ▀ ▀ ▀${reset}
${boldon}${yellowf} ▄███████▄ ${redf} ▄██████▄ ${greenf} ▄██████▄ ${bluef} ▄██████▄ ${purplef} ▄██████▄ ${cyanf} ▄██████▄${reset}
${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}
${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}