18 lines
297 B
Bash
Executable File
18 lines
297 B
Bash
Executable File
#! /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
|