Sha256: 4c7f90a6e5a5a90d854ae8de0ac9e27676623358b3f10307e096ad02b22898b1
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
#!/bin/sh master() { echo "Would you like to update RPS?"; process() { gem update PlayRockPaperScissorsGame; echo "Finished!"; } confirm() { echo "Press U to update or press C to cancel"; while read -r -n 1 -s answer; do if [[ $answer = [UuCc] ]]; then [[ $answer = [Uu] ]] && retval=0; [[ $answer = [Cc] ]] && retval=1; break; fi; done; return $retval; } init() { if confirm; then process; else exit; fi; } init; } master;
Version data entries
5 entries across 5 versions & 1 rubygems