From 0f068a164dcb491548969c84f5584741d323cce6 Mon Sep 17 00:00:00 2001 From: Logan Joy-Koer Date: Wed, 10 Dec 2025 22:24:06 -0800 Subject: [PATCH] fix bug where all caps .PYC was seen as not compiled --- extractscripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractscripts.sh b/extractscripts.sh index a5d2c8d..3556d84 100755 --- a/extractscripts.sh +++ b/extractscripts.sh @@ -43,7 +43,7 @@ DecompylePycFiles() { dd if=$1$k of=tmp.pyc bs=1 skip=4 2>/dev/null # remove first 4 bytes of file (random garbage?) Will be changed if needed. rm $1$k mv tmp.pyc $1$k - if [[ "$k" == *".pyc" ]]; then + if [[ "${k//.PYC/.pyc}" == *".pyc" ]]; then pycdc -c $1$k -v 2.1 -o ${1//$DECOMPATH/$SCRIPPATH}${k//.PYC/.py} #decompile pyc file to the human readable .py format else cp $1$k ${1//$DECOMPATH/$SCRIPPATH}$k