#!/usr/bin/env sh success_f(){ echo "\033[38;5;78mSUCCESS\033[31;0m"; } abort_f(){ echo "\033[38;5;161mABORTING\033[31;0m"; exit; } # Fetching sources list echo "\033[38;5;208m[1/1] FETCHING PACKAGES\033[31;0m"; sudo apt-get update && success_f || abort_f;