|
@ -3,6 +3,20 @@ |
|
|
## FUNCTIONS |
|
|
## FUNCTIONS |
|
|
## --------- |
|
|
## --------- |
|
|
|
|
|
|
|
|
|
|
|
function trap_error(){ |
|
|
|
|
|
error_code=$1 |
|
|
|
|
|
error_line=$2 |
|
|
|
|
|
|
|
|
|
|
|
printf "\nEXIT #${error_code} due to error at line ${error_line} : \n-----------------------------------------\n" |
|
|
|
|
|
sed "${error_line}q;d" $0 |
|
|
|
|
|
echo |
|
|
|
|
|
exit $error_code |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
set -e |
|
|
|
|
|
trap 'trap_error $? $LINENO' ERR |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function runVoid(){ |
|
|
function runVoid(){ |
|
|
local COMMAND="$@" |
|
|
local COMMAND="$@" |
|
|
bash -c "${COMMAND}" >/dev/null 2>&1 |
|
|
bash -c "${COMMAND}" >/dev/null 2>&1 |
|
@ -225,6 +239,8 @@ for addon_id in "${!FIREFOX_ADDONS[@]}"; do |
|
|
fi |
|
|
fi |
|
|
done |
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo |
|
|
echo |
|
|
echo |
|
|
echo |
|
|
echo "# DEBIAN-GNOME successfully installed!" |
|
|
echo "# DEBIAN-GNOME successfully installed!" |
|
|