From f61b44d1ba4ea984056e190acd47b62cce557e44 Mon Sep 17 00:00:00 2001 From: Nebula Date: Wed, 14 Dec 2022 09:24:41 -0500 Subject: [PATCH] make it not yell if logs dont exist... for some reason --- palera1n.sh | 32 ++++++++++++++++++-------------- ramdisk | 2 +- 2 files changed, 19 insertions(+), 15 deletions(-) diff --git a/palera1n.sh b/palera1n.sh index 459f146..ccbc03a 100755 --- a/palera1n.sh +++ b/palera1n.sh @@ -290,13 +290,15 @@ _exit_handler() { [ $? -eq 0 ] && exit echo "[-] An error occurred" - cd logs - for file in *.log; do - if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then - mv "$file" FAIL_${file} - fi - done - cd .. + if [ -d "logs" ]; then + cd logs + for file in *.log; do + if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then + mv "$file" FAIL_${file} + fi + done + cd .. + fi 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 fi -cd logs -for file in *.log; do - if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then - mv "$file" SUCCESS_${file} - fi -done -cd .. +if [ -d "logs" ]; then + cd logs + for file in *.log; do + if [[ "$file" != "SUCCESS_"* ]] && [[ "$file" != "FAIL_"* ]]; then + mv "$file" SUCCESS_${file} + fi + done + cd .. +fi rm -rf work rdwork echo "" diff --git a/ramdisk b/ramdisk index 8aab02c..a5b9f41 160000 --- a/ramdisk +++ b/ramdisk @@ -1 +1 @@ -Subproject commit 8aab02c852fb3c92ec01d03b549447616948c659 +Subproject commit a5b9f41179e6c2afaaa084c621d77aa6ea227120