fixed issue when user where already exist
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user