#! /bin/sh

prts="$(cat installed-ports)"

installed() {
	for i in $prts 
	do
		doas scratch install -fr $i
	done
}

printf "You are gonna recompile and reinstall all installed ports like $prts \n... \nAre you sure?  [y/N]"
	read op
	case "$op" in
		[y|y) installed ;;
		N]|n) exit ;;
       esac
