0

这是我的脚本。其权限设置为 755。

#!bin/bash


echo "Deleting the themes you don't want!"

sleep 2

echo  "                 by D3@TH 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:bin/bash:错误的解释器:没有这样的文件或目录

有没有办法解决这个问题,我想让它工作?

4

1 回答 1

1

第一行应为:

#!/ bin/bash

注意前面的正斜杠,这将使它相对于文件系统的根目录而不是当前目录。

于 2012-07-01T00:33:21.427 回答