Skip to content

Instantly share code, notes, and snippets.

@willbchang
Created October 13, 2023 02:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save willbchang/ff30f72e1f1e982241762d180e39c6cd to your computer and use it in GitHub Desktop.
Save willbchang/ff30f72e1f1e982241762d180e39c6cd to your computer and use it in GitHub Desktop.
卸载 云枢 app
sudo chflags -R noschg /Applications/Yunshu.app
sudo rm -rf /opt/yunshu \
/opt/.yunshu \
/Library/PrivilegedHelperTools/com.eagleyun.sase.helper \
/Applications/Yunshu.app
function cleanup() {
local target="$1"
while [[ $(fd "$target" | wc -l) -ne 0 ]]; do
for each in $(fd "$target"); do
sudo rm -rf "$each"
done
done
}
cleanup "eagleyun"
cleanup "yunshu"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment