diff --git a/scripts/base.sh b/scripts/base.sh index d682cbf..47c2ec6 100644 --- a/scripts/base.sh +++ b/scripts/base.sh @@ -23,3 +23,24 @@ declare -a BACKUP_LIST=("$HOME/.ssh/" \ "$HOME/Documents/identity/" \ "$HOME/Documents/passwords/" \ "$HOME/Documents/licenses/"); + + COLOR_RED=$(tput setaf 1) + COLOR_GREEN=$(tput setaf 2) + COLOR_YELLOW=$(tput setaf 3) + COLOR_BLUE=$(tput setaf 4) + COLOR_MAGENTA=$(tput setaf 5) + COLOR_CYAN=$(tput setaf 6) + COLOR_WHITE=$(tput setaf 7) + COLOR_RESET=$(tput sgr0) + + HEADER(){ + echo + echo "${COLOR_YELLOW}The" + base64 -d <<<"ICBfX19fXyAgICAgICAgICAgICAgICBfX19fXyAgICAgICAgICAgXyAgICAgICAgICAgICAgICAgCiAvIF9fX198ICAgICAgICAgICAgICAvIF9fX198ICAgICAgICAgfCB8ICAgICAgICAgICAgICAgIAp8IHwgICAgIF9fXyAgXyBfXyBfX198IChfX18gIF8gICBfIF9fX3wgfF8gX19fIF8gX18gX19fICAKfCB8ICAgIC8gXyBcfCAnX18vIF8gXFxfX18gXHwgfCB8IC8gX198IF9fLyBfIFwgJ18gYCBfIFwgCnwgfF9fX3wgKF8pIHwgfCB8ICBfXy9fX19fKSB8IHxffCBcX18gXCB8fCAgX18vIHwgfCB8IHwgfAogXF9fX19fXF9fXy98X3wgIFxfX198X19fX18vIFxfXywgfF9fXy9cX19cX19ffF98IHxffCB8X3wKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX18vIHwgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfF9fXy8gICAgICAgICAgICAgICAgICAgICAgIAo=" + echo "is administration tool designed from and for Kevin Veen-Birkenbach." + echo + echo "Licensed under GNU GENERAL PUBLIC LICENSE Version 3" + echo "${COLOR_RESET}" + } + + HEADER diff --git a/scripts/template.sh b/scripts/template.sh deleted file mode 100644 index 16115bc..0000000 --- a/scripts/template.sh +++ /dev/null @@ -1,19 +0,0 @@ -COLOR_RED=$(tput setaf 1) -COLOR_GREEN=$(tput setaf 2) -COLOR_YELLOW=$(tput setaf 3) -COLOR_BLUE=$(tput setaf 4) -COLOR_MAGENTA=$(tput setaf 5) -COLOR_CYAN=$(tput setaf 6) -COLOR_WHITE=$(tput setaf 7) -COLOR_RESET=$(tput sgr0) - -HEADER(){ - echo - echo "${COLOR_YELLOW}The" - base64 -d <<<"ICBfX19fXyAgICAgICAgICAgICAgICBfX19fXyAgICAgICAgICAgXyAgICAgICAgICAgICAgICAgCiAvIF9fX198ICAgICAgICAgICAgICAvIF9fX198ICAgICAgICAgfCB8ICAgICAgICAgICAgICAgIAp8IHwgICAgIF9fXyAgXyBfXyBfX198IChfX18gIF8gICBfIF9fX3wgfF8gX19fIF8gX18gX19fICAKfCB8ICAgIC8gXyBcfCAnX18vIF8gXFxfX18gXHwgfCB8IC8gX198IF9fLyBfIFwgJ18gYCBfIFwgCnwgfF9fX3wgKF8pIHwgfCB8ICBfXy9fX19fKSB8IHxffCBcX18gXCB8fCAgX18vIHwgfCB8IHwgfAogXF9fX19fXF9fXy98X3wgIFxfX198X19fX18vIFxfXywgfF9fXy9cX19cX19ffF98IHxffCB8X3wKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgX18vIHwgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfF9fXy8gICAgICAgICAgICAgICAgICAgICAgIAo=" - echo "is administration tool designed from and for Kevin Veen-Birkenbach." - echo - echo "Licensed under GNU GENERAL PUBLIC LICENSE Version 3" - echo "${COLOR_RESET}" -} -HEADER