0
這是我的腳本。它的權限設置爲755。主題卸妝腳本
#!bin/bash
echo "Deleting the themes you don't want!"
sleep 2
echo " by [email protected] from Deaths Repo"
##### root test #####
# won't go any farther unless you're uid=0
[ `id -u` != 0 ] && exec echo "Oops, you need to be root to run this script"
echo ".....removing WinterBoard Default Themes!"
echo "…..now deleting themes!"
cd /Library/Themes/
rm -rf Black Navigation Bars.theme Dim Icons.theme Dim Wallpaper.theme No Docked Icon Labels.theme No Undocked Icon Labels.theme Solid Status Bar.theme Transparent Dock.theme User Lock Background.theme User Wallpaper.theme White Icon Labels.theme
sleep 2
echo ".....moving themes to var"
mv /Library/Themes /private/var/ && ln -s /private/var/WinterBoard /Library/Themes
echo "Finished deleting the themes you didn't want feel free to delete me I don't mind."
sleep 3
apt-get remove net.death.themeremover
killall WinterBoard
exit 0
每次我在我的iPhone或iPod上運行,我得到這樣的:
-SH:在/ usr/bin中/的Winterboard:斌/慶典:不好的翻譯:沒有這樣的文件或目錄
是否有修復此問題,我希望能夠得到它的工作?
好的我修復了這個問題,但它並沒有像刪除那個目錄中的文件夾 – D3ATH
這是另一個問題的一部分,我想。無論如何,請嘗試引用目錄名稱。 – Ryan
那麼每個文件夾都以.theme結尾,所以我需要它將列出的文件夾移動到不同的目錄中,並且不會完全刪除它們,以防他們決定要回到那個目錄並返回到目錄並獲取它們 – D3ATH