Created
May 5, 2011 14:36
-
-
Save wayneeseguin/957150 to your computer and use it in GitHub Desktop.
Bash live update
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
update() | |
{ | |
echo "Before the update" | |
cat update > test.sh | |
echo "This has changed" | |
} | |
update |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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