Skip to content

Instantly share code, notes, and snippets.

@hUwUtao
Created August 16, 2023 18:40
Show Gist options
  • Save hUwUtao/e9bec4b20956954774ec5b3f686cc540 to your computer and use it in GitHub Desktop.
Save hUwUtao/e9bec4b20956954774ec5b3f686cc540 to your computer and use it in GitHub Desktop.
Manual Genshin Update Patching: Cleanup unused files with busybox/msys2
#!/bin/busybox ash
while read -r lin; do cat & rm -v "$lin"; done < <(cat deletefiles.txt | sed -r 's/ [a-z0-9@_-]+\\.target//;s/\\.service//g;s/ +/ /g;s/ /\\n/g' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment