Corretto refuso su exit 3 al check esistenza editor

This commit is contained in:
Marco Raber 2022-04-09 15:41:29 +02:00
parent 1028c704f2
commit d3ab9d892e

2
ne
View File

@ -65,7 +65,7 @@ $(which cp) $file /tmp/copia_check_nginx_${USER} #$(which cat) $file > /tmp/copi
[[ $? -eq 1 ]] && printf "File $file not found, exiting\n" && exit 1
#qua command -v e non which per silent quando fallisce
[[ ! -e $(command -v $text_editor) ]] && echo "$program_privileges is not installed" && exit 3
[[ ! -e $(command -v $text_editor) ]] && echo "$text_editor is not installed" && exit 3
[[ ! -e $(command -v $program_privileges) ]] && echo "$program_privileges is not installed" && exit 4
$program_privileges $text_editor $file
diff --color=always $file /tmp/copia_check_nginx_${USER}