Multiple updates

Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
Severin Kaderli 2019-03-17 23:22:54 +01:00
parent c7b67a084b
commit dac6042f52
Signed by: severinkaderli
GPG key ID: F419F8835B72F0C4
15 changed files with 66 additions and 51 deletions

View file

@ -16,8 +16,6 @@
START_DIR=$(pwd)
print_header "Updating submodules"
while IFS= read -r -d '' dir
do
cd "$dir" || exit 1

View file

@ -14,7 +14,6 @@
# ./upgrade
. utils
print_header "Upgrading system"
print_section "Update arch packages"
yay -Syu --devel

View file

@ -31,14 +31,6 @@ YELLOW='\033[33m'
#######################################
# Helper functions
#######################################
# Function to display fancy headers
# USAGE: print_header TITLE
function print_header() {
echo -e "\n${GREEN}╔══════════════════════════════════════════════════════════════════════════════╗"
echo -e "║ $(printf "%-77s" "${1}")║"
echo -e "╚══════════════════════════════════════════════════════════════════════════════╝${RESET}"
}
# Function to print out a log entry together with the current date and time.
# USAGE: print_time_log SCRIPT MESSAGE
function print_time_log() {
@ -62,7 +54,7 @@ function print_section() {
}
function print_log() {
echo -e "• $1"
echo -e " • $1"
}
# Creates the given directory in the home directory