Sha256: 1349fd0da25cd7f2d8f178a907248871ed001e442c5b610bceaf4312fb6eb783

Contents?: true

Size: 724 Bytes

Versions: 99

Compression:

Stored size: 724 Bytes

Contents

#!/bin/sh

master() {
	echo "Would you like to Uninstall the RPS gem, Ruby Gems, Ruby, and xcode command line tools?";
	process() {
		sudo rm -rf /Library/Developer/CommandLineTools;
		/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)";
		rvm implode;
		gem uninstall PlayRockPaperScissorsGame;
		echo "Finished!";
	}
	confirm() {
		echo "Press Y to uninstall, or press N to cancel";
		while read -r -n 1 -s answer; do
			if [[ $answer = [YyNn] ]]; then 
			    [[ $answer = [Yy] ]] && retval=0; 
			    [[ $answer = [Nn] ]] && retval=1; 
			    break; 
			fi; 
		done;
		return $retval;
	} 
	init() {
		if confirm; then
			process;
		else
			exit;
		fi;
	}
	init;
}
master;

Version data entries

99 entries across 99 versions & 2 rubygems

Version Path
PlayRockPaperScissorsGame-2.0.9 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.8 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.7 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.6 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.5 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.4 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.3 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.2 exec/uninstall.sh
PlayRo2kPaperScissorsGame-2.0.2 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.1 exec/uninstall.sh
PlayRockPaperScissorsGame-2.0.0 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.8 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.7 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.6 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.5 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.4 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.3 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.2 exec/uninstall.sh
PlayRockPaperScissorsGame-1.9.1 exec/uninstall.sh