mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-28 02:58:40 +00:00
docs(shell): add function docstring comments
This commit is contained in:
@@ -30,6 +30,7 @@ if [ "$#" -lt 2 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Extract hostname from arguments, handling ssh shortcut
|
||||
get_host()
|
||||
{
|
||||
if [ "$1" = "ssh" ]; then
|
||||
@@ -39,6 +40,7 @@ get_host()
|
||||
fi
|
||||
}
|
||||
|
||||
# Wait until host responds to ping
|
||||
wait_for_host()
|
||||
{
|
||||
local host=$1
|
||||
@@ -50,6 +52,7 @@ wait_for_host()
|
||||
done
|
||||
}
|
||||
|
||||
# Wait for host to come online then execute command
|
||||
main()
|
||||
{
|
||||
local host
|
||||
|
||||
Reference in New Issue
Block a user