Delete the file when you are done

This commit is contained in:
Anthony Wang 2021-07-21 10:58:34 -05:00
parent b5decc6c6d
commit 401a9bfe59
Signed by: a
GPG key ID: BC96B00AEC5F2D76

View file

@ -6,10 +6,12 @@ echo "Your IP address is "$(ip route get 1.1.1.1 | grep -oP 'src \K[^ ]+')
if [ "$#" -eq 1 ]; then
ln "$1" . # Link file to current directory
else
touch share.txt # Creat the file
touch share.txt # Create the file
xdg-open share.txt # Open file in default editor
fi
# Start Python's HTTP server
echo "Press Ctrl-C to stop the server when you are done"
python -m http.server
rm share.txt # Delete the file when you are done