summaryrefslogtreecommitdiff
path: root/games-util/steam-launcher/files/steam-non-gtar.patch
blob: c493e99a734f02747d8b33f33662c8488100fea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- steam.sh.orig
+++ steam.sh
@@ -342,11 +342,11 @@
 		BF=""
 		;;
 	esac
-	if [ "${BF}" ]; then
+	if [ "${BF}" ] && type -P gtar &>/dev/null; then
 		if [ -n "${STEAM_ZENITY}" ]; then
-			tar --blocking-factor=${BF} --checkpoint=1 --checkpoint-action='exec=echo $TAR_CHECKPOINT' -xf "$2" -C "$3" | "${STEAM_ZENITY}" --progress --auto-close --no-cancel --width 400 --text="$1"
+			gtar --blocking-factor=${BF} --checkpoint=1 --checkpoint-action='exec=echo $TAR_CHECKPOINT' -xf "$2" -C "$3" | "${STEAM_ZENITY}" --progress --auto-close --no-cancel --width 400 --text="$1"
 		else
-			tar --blocking-factor=${BF} --checkpoint=1 --checkpoint-action='exec=echo $TAR_CHECKPOINT' -xf "$2" -C "$3"
+			gtar --blocking-factor=${BF} --checkpoint=1 --checkpoint-action='exec=echo $TAR_CHECKPOINT' -xf "$2" -C "$3"
 		fi
 		return ${PIPESTATUS[0]}
 	else