Add suicidal_script.sh

This commit is contained in:
2024-07-07 21:21:26 +01:00
parent b4511d3be4
commit 1f30cb4fe3
2 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,7 @@
Intended for use when a program that outputs to `stdout` is called from a non-terminal or graphical program, making the `stdout` output inaccessible.
The output can instead be piped into this script to make it readable as a system notification.
- `stopwatch.sh`: simple stopwatch script that counts the elapsed time in seconds, and displays it in the format HH:MM:SS.
- `suicidal_script.sh`: a script that deletes itself. Doesn't do anything, just a proof of concept.
- `sync_music.sh`: script to sync my Android phone's music library to the contents of my `~/media/music/` directory, i.e. copy my music library from my
laptop to my phone.
- `trippy.sh`: script that displays random visual data to the screen (only works when called from a TTY).

4
suicidal_script.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/sh
# A script that deletes itself
rm "$(echo $0 | awk -F '/' '{print $NF}')"