duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

retry.sh (189B)


      1 #!/bin/bash
      2 
      3 RETRIES=10
      4 
      5 for i in $(seq 1 "$RETRIES"); do
      6 	"$@" && break
      7 	if [ "$i" == "$RETRIES" ]; then
      8 		echo "Command \"$@\" failed after ${RETRIES} retries."
      9 		exit 1
     10 	fi
     11 done
     12 
     13 exit 0