fixed issue when user where already exist

This commit is contained in:
levasseur committed 2021-09-13 14:26:40 +02:00
1 parent bdac33284e
commit a06897270f
2 files changed
+16 -3

No files matched your search

+10 -1
View File
@@ -86,10 +86,19 @@ function backtrace
# Execute command outside of error control, echoes ouput error code
noerror()
{
if [[ $1 == "--noout" ]]; then
local noout=true
shift
fi
set +o errexit
trap - ERR
$@
if [[ -n $noout ]]; then
$@ > /dev/null 2>&1
else
$@
fi
local code=$?
trap "error ${LINENO}" ERR