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.3.1 exec/uninstall.sh
PlayRockPaperScissorsGame-2.3.0 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.9 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.8 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.7 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.4 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.3 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.2 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.1 exec/uninstall.sh
PlayRockPaperScissorsGame-2.2.0 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.9 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.8 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.7 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.6 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.5 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.4 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.3 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.2 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.1 exec/uninstall.sh
PlayRockPaperScissorsGame-2.1.0 exec/uninstall.sh