I have code that opens a bash file in a terminal for entering the sudo password:
test "$IN_TERM" || {
export IN_TERM=1
konsole -e "$0"
exit 0
} && true
I need to convert it to a form with if fi
tags. I tried this option, but then an infinite number of terminals open:
if [[ -n $IN_TERM ]]; then
export IN_TERM=1
else
konsole -e "$0"
exit 0
fi
Thanks.