Skip to content

Commit 3ad7c17

Browse files
Murdock Grewarrien
authored andcommitted
Release EXIT signal trap if SSH failed
1 parent dae1d06 commit 3ad7c17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

reStream.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ if ! ssh_cmd true; then
139139
echo "$remarkable unreachable or you have not set up an ssh key."
140140
echo "If you see a 'Permission denied' error, please visit"
141141
echo "https://github.com/rien/reStream/#installation for instructions."
142+
trap - EXIT
142143
exit 1
143144
fi
144145

0 commit comments

Comments
 (0)