check file type

This commit is contained in:
qnblackcat 2022-03-22 11:55:04 +07:00
parent 691ae41732
commit abad6888e1
4 changed files with 9 additions and 6 deletions

4
.gitignore vendored
View file

@ -1,4 +1,6 @@
.theos
.DS_Store
packages
obj
obj
Tweaks/uYou/*
!Tweaks/uYou/.gitkeep

View file

@ -1,3 +0,0 @@
*
*/
!.gitignore

0
Tweaks/uYou/.gitkeep Normal file
View file

View file

@ -22,11 +22,15 @@ else
fi
# Makefile
read -e -p "==> Path to the decrypted YouTube IPA: " PATHTOIPA
read -e -p "==> Path to the decrypted YouTube iPA: " PATHTOIPA
if [[ $PATHTOIPA == *.ipa ]]
then
sed -i '' "14s#.*#uYouPlus_IPA = $PATHTOIPA#g" ./Makefile
make clean package
open ./packages
else
echo "This is not an iPA"
fi
# Clean up
tput setaf 1 && echo -e "==> \033[1mCleaning up...\033[0m"
find Tweaks/uYou -mindepth 1 -name com.miro.uyou_2.1_iphoneos-arm.deb -prune -o -exec rm -rf {} +