Merge pull request #2 from israelrg/dev

fixed Ctrl+c remove files
This commit is contained in:
Anthony Wang 2021-08-21 14:28:30 -05:00 committed by GitHub
commit 32d41d3bf3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,8 +10,8 @@ else
xdg-open share.txt # Open file in default editor
fi
trap 'rm share share.txt' INT
# Start Python's HTTP server
echo "Press Ctrl-C to stop the server when you are done"
python3 -m http.server
rm share share.txt > /dev/null 2>&1 # Delete the file when you are done