Skip to content

Instantly share code, notes, and snippets.

@wayneeseguin
Created May 5, 2011 14:36
Show Gist options
  • Save wayneeseguin/957150 to your computer and use it in GitHub Desktop.
Save wayneeseguin/957150 to your computer and use it in GitHub Desktop.
Bash live update
#!/bin/bash
update()
{
echo "Before the update"
cat update > test.sh
echo "This has changed"
}
update
#!/bin/bash
set -x
update()
{
echo "Before the update"
# Adding comments
# And_another_very_long_comment
# And_another_very_long_comment
# And_another_very_long_comment
# And_another_very_long_comment
cat update > test.sh
echo "This has changed"
}
update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment