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.9.1 exec/uninstall.sh
PlayRockPaperScissorsGame-2.9.0 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.9 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.8 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.7 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.6 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.5 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.4 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.3 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.2 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.1 exec/uninstall.sh
PlayRockPaperScissorsGame-2.8.0 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.9 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.8 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.7 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.6 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.5 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.4 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.3 exec/uninstall.sh
PlayRockPaperScissorsGame-2.7.2 exec/uninstall.sh