Created
February 3, 2022 20:09
-
-
Save obvionaoe/3f03e1570d737c8ce2b8d97253ad60ea to your computer and use it in GitHub Desktop.
A way to remove the script being executed in Bash
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/sh | |
rm "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/$(basename "${BASH_SOURCE[0]}")" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment