mirror of
https://github.com/palera1n/palera1n.git
synced 2026-11-29 04:43:46 +01:00
make it not yell if logs dont exist... for some reason
This commit is contained in:
2 files changed
+19
-15
No files matched your search
+18
-14
@@ -290,13 +290,15 @@ _exit_handler() {
|
|||||||
[ $? -eq 0 ] && exit
|
[ $? -eq 0 ] && exit
|
||||||
echo "[-] An error occurred"
|
echo "[-] An error occurred"
|
||||||
|
|
||||||
cd logs
|
if [ -d "logs" ]; then
|
||||||
for file in *.log; do
|
cd logs
|
||||||
if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then
|
for file in *.log; do
|
||||||
mv "$file" FAIL_${file}
|
if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then
|
||||||
fi
|
mv "$file" FAIL_${file}
|
||||||
done
|
fi
|
||||||
cd ..
|
done
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
echo "[*] A failure log has been made. If you're going ask for help, please attach the latest log."
|
echo "[*] A failure log has been made. If you're going ask for help, please attach the latest log."
|
||||||
}
|
}
|
||||||
@@ -991,13 +993,15 @@ if [ -z "$semi_tethered" ]; then
|
|||||||
"$dir"/irecovery -c fsboot
|
"$dir"/irecovery -c fsboot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd logs
|
if [ -d "logs" ]; then
|
||||||
for file in *.log; do
|
cd logs
|
||||||
if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then
|
for file in *.log; do
|
||||||
mv "$file" SUCCESS_${file}
|
if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then
|
||||||
fi
|
mv "$file" SUCCESS_${file}
|
||||||
done
|
fi
|
||||||
cd ..
|
done
|
||||||
|
cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
rm -rf work rdwork
|
rm -rf work rdwork
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
+1
-1
Submodule ramdisk updated: 8aab02c852...a5b9f41179.
Reference in new issue
Block a user