Move utils.sh to system/bin

Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
Severin Kaderli 2018-12-13 21:36:04 +01:00
parent 615d4fac8d
commit 09d9f2c1c8
4 changed files with 6 additions and 3 deletions

View file

@ -2,7 +2,7 @@
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
# Usage: ./install.sh
. utils.sh
. ./system/bin/utils.sh
#######################################
# Configuration variables

View file

@ -8,7 +8,7 @@
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
# Usage: ./post-install.sh
. utils.sh
. ./system/bin/utils.sh
#######################################
# Configuration variables

View file

@ -1,5 +1,8 @@
#!/bin/bash
#
# Author: Severin Kaderli <severin.kaderli@gmail.com>
. utils.sh
print_header "Update packages"
aurman -Syuu --rebuild
npm update -g

2
utils.sh → system/bin/utils.sh Normal file → Executable file
View file

@ -5,7 +5,7 @@
#######################################
# Directory variables
#######################################
DIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)"
DIR="$( cd "$(dirname "${BASH_SOURCE[0]}" )" && cd ../../ && pwd)"
SYSTEM_DIR="${DIR}/system"
PACKAGES_DIR="${DIR}/packages"