Turned everything ito a function

This commit is contained in:
2021-04-03 15:37:23 +03:00
parent 358880697e
commit 53a9ea38e4

View File

@@ -1,4 +1,4 @@
#!/bin/sh sshukh () {
output=$(ssh "$@") output=$(ssh "$@")
if [ $? -eq 255 ]; if [ $? -eq 255 ];
then then
@@ -12,3 +12,4 @@ then
esac esac
done done
fi fi
}