Terminal 主题移除脚本
这是我的剧本。其权限设置为755Terminal 主题移除脚本,terminal,Terminal,这是我的剧本。其权限设置为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 n
#!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解释器:没有这样的文件或目录
有没有办法解决这个问题?我想让它工作起来?第一行应该是: #!/bin/bash #!/bin/bash
请注意前导的正斜杠,它将使其相对于文件系统的根目录而不是当前目录。好的,我修正了这个问题,但它不会删除该目录中的文件夹,就像它应该删除的那样。我想这是另一个问题的一部分。无论如何,请尝试引用目录名。每个文件夹都以.theme结尾,因此我需要它将列出的文件夹移动到另一个目录中,在该目录中不会完全删除这些文件夹,以防他们决定要回这些主题,他们可以转到该目录并获取这些主题them@user1493681:引用他们的话,真的。我完全重写了剧本,它按照我想要的方式运行。谢谢大家的帮助