fix bug where all caps .PYC was seen as not compiled

This commit is contained in:
Logan Joy-Koer
2025-12-10 22:24:06 -08:00
parent d4c1b10d26
commit 0f068a164d
+1 -1
View File
@@ -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. 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 rm $1$k
mv tmp.pyc $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 pycdc -c $1$k -v 2.1 -o ${1//$DECOMPATH/$SCRIPPATH}${k//.PYC/.py} #decompile pyc file to the human readable .py format
else else
cp $1$k ${1//$DECOMPATH/$SCRIPPATH}$k cp $1$k ${1//$DECOMPATH/$SCRIPPATH}$k