这是我的剧本。其权限设置为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:bad interpreter:没有这样的文件或目录
无论如何解决这个问题,我希望能够让它发挥作用吗?
答案 0 :(得分:1)
第一行应为:
#!/bin/bash
注意前导斜杠,它将使其相对于文件系统的根而不是当前目录。