Skip to content

Instantly share code, notes, and snippets.

View sylware's full-sized avatar

Sylvain BERTRAND sylware

  • Marseille France EU
View GitHub Profile
@sylware
sylware / steam.sh.patch
Last active April 1, 2021 14:23
system
--- steam.sh
+++ steam.sh
@@ -293,7 +293,11 @@
BF=$(($(gzip --list "$2" | sed -n -e "s/.*[[:space:]]\+[0-9]\+[[:space:]]\+\([0-9]\+\)[[:space:]].*$/\1/p") / $((512 * 100)) + 1))
;;
*.xz)
- BF=$(($(xz --robot --list "$2" | grep totals | awk '{print $5}') / $((512 * 100)) + 1))
+ if xz -h 2>&1 | grep -q BusyBox; then
+ BF=""
+ else