fix login failure
This commit is contained in:
@@ -104,10 +104,23 @@ run_ep_eraser() {
|
||||
|
||||
run_nwipe() {
|
||||
local report_dir=/var/log/ep-eraser/reports
|
||||
local status
|
||||
mkdir -p /etc/nwipe
|
||||
mkdir -p "$report_dir"
|
||||
cd /etc/nwipe
|
||||
nwipe --PDFreportpath="$report_dir" </dev/tty >/dev/tty 2>&1
|
||||
trap ':' INT
|
||||
if nwipe --PDFreportpath="$report_dir" </dev/tty >/dev/tty 2>&1; then
|
||||
status=0
|
||||
else
|
||||
status=$?
|
||||
fi
|
||||
trap - INT
|
||||
|
||||
if [ "$status" -eq 130 ]; then
|
||||
printf '\nnwipe interrupted. Returning to the tool menu.\n'
|
||||
elif [ "$status" -ne 0 ]; then
|
||||
printf '\nnwipe exited with status %s. Returning to the tool menu.\n' "$status"
|
||||
fi
|
||||
}
|
||||
|
||||
main() {
|
||||
|
||||
Reference in New Issue
Block a user