Release EXIT signal trap if SSH failed

This commit is contained in:
Murdock Grewar 2024-01-09 17:40:41 +01:00 committed by Rien Maertens
parent dae1d0601f
commit 3ad7c1700b
No known key found for this signature in database
GPG Key ID: AE66CE42F1AF9DEF

View File

@ -139,6 +139,7 @@ if ! ssh_cmd true; then
echo "$remarkable unreachable or you have not set up an ssh key." echo "$remarkable unreachable or you have not set up an ssh key."
echo "If you see a 'Permission denied' error, please visit" echo "If you see a 'Permission denied' error, please visit"
echo "https://github.com/rien/reStream/#installation for instructions." echo "https://github.com/rien/reStream/#installation for instructions."
trap - EXIT
exit 1 exit 1
fi fi