Remove root user check
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Amab 2023-01-21 12:48:11 +01:00
parent 37d9dc78dd
commit 1934626a34
1 changed files with 0 additions and 1 deletions

View File

@ -91,7 +91,6 @@ function errorHandler() {
trap 'errorHandler $? $LINENO' ERR
trap "echo -e '\nTerminated by Ctrl+c'; cleanTempFiles; exit" INT
if [ "$(id -u)" == 0 ]; then errorHandler "Don't run this script as root, please" "$LINENO"; fi
for element in "${APP[@]}"; do
[ -z "$(whereis -b "$element" | awk {'print$2'})" ] && errorHandler "$element - Maybe it is not installed on the system. Sorry but I can't continue" "$LINENO"
done