mirror of
https://github.com/tteck/Proxmox.git
synced 2025-02-15 06:09:15 +01:00
Fix escape codes;
When running certain scripts, sometimes an 'm' character is wrongly output to the terminal. This PR fixes all instances of this happening. I've also made 'RD' (red) consistent with 'GN' (green) by removing the leading 0, and my editor has kindly removed all trailing spaces from files.
This commit is contained in:
parent
bfeb4105e9
commit
ee5b965cd6
225 changed files with 2043 additions and 2049 deletions
|
@ -9,11 +9,11 @@ LATEST=$(curl -s https://api.github.com/repos/home-assistant/operating-system/re
|
|||
YW=`echo "\033[33m"`
|
||||
BL=`echo "\033[36m"`
|
||||
HA=`echo "\033[1;34m"`
|
||||
RD=`echo "\033[01;31m"`
|
||||
RD=`echo "\033[1;31m"`
|
||||
BGN=`echo "\033[4;92m"`
|
||||
GN=`echo "\033[1;92m"`
|
||||
DGN=`echo "\033[32m"`
|
||||
CL=`echo "\033[m"`
|
||||
CL=`echo "\033[0m"`
|
||||
BFR="\\r\\033[K"
|
||||
HOLD="-"
|
||||
CM="${GN}✓${CL}"
|
||||
|
@ -67,10 +67,10 @@ function header_info {
|
|||
echo -e "${HA}
|
||||
__ __ ___ ____ _____
|
||||
/ / / // |v4/ __ \/ ___/
|
||||
/ /_/ // /| | / / / /\__ \
|
||||
/ __ // ___ |/ /_/ /___/ /
|
||||
/_/ /_//_/ |_|\____//____/
|
||||
Home Assistant OS
|
||||
/ /_/ // /| | / / / /\__ \
|
||||
/ __ // ___ |/ /_/ /___/ /
|
||||
/_/ /_//_/ |_|\____//____/
|
||||
Home Assistant OS
|
||||
${CL}"
|
||||
}
|
||||
function msg_info() {
|
||||
|
@ -160,7 +160,7 @@ if [ $exitstatus = 0 ]; then
|
|||
else
|
||||
VLAN=",tag=$VLAN1"
|
||||
echo -e "${DGN}Using Vlan: ${BGN}$VLAN1${CL}"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if (whiptail --title "START VIRTUAL MACHINE" --yesno "Start VM when completed?" 10 58); then
|
||||
echo -e "${DGN}Start VM when completed: ${BGN}yes${CL}"
|
||||
|
@ -221,7 +221,7 @@ fi
|
|||
msg_ok "Using ${CL}${BL}$STORAGE${CL} ${GN}for Storage Location."
|
||||
msg_ok "Virtual Machine ID is ${CL}${BL}$VMID${CL}."
|
||||
msg_info "Getting URL for Home Assistant ${BRANCH} Disk Image"
|
||||
if [ "$BRANCH" == "$DEV" ]; then
|
||||
if [ "$BRANCH" == "$DEV" ]; then
|
||||
URL=https://os-builds.home-assistant.io/${BRANCH}/haos_ova-${BRANCH}.qcow2.xz
|
||||
else
|
||||
URL=https://github.com/home-assistant/operating-system/releases/download/${BRANCH}/haos_ova-${BRANCH}.qcow2.xz
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue