📄 taruninstall.sh
字号:
#! /bin/sh# THis one is not finished by a long shot, but was some work on doing an# uninstall for a .tar.gz install# THe way this works is that the buildroot file is stored relative to the root# directory and a tar -xzf at root directory will restore all the files in # the position that we want them to beOrigDir=`pwd`cd /Dirs=""for i in `tar -tzf $OrigDir/buildroot.tar.gz` do if [ -f $i -o -L $i ] then rm -f $i elif [ -d $i ] then Dirs="$i $Dirs" fi doneif [ ! -z $Dirs ] then for i in $Dirs do checkIfCanRemoveDir $i doneficd $OrigDir
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -