Remove trailing whitespace from lines
This commit is contained in:
parent
a5a22b7c88
commit
8a95dbb0fa
@ -1,9 +1,9 @@
|
|||||||
# imgupload
|
# imgupload
|
||||||
     
|
     
|
||||||
|
|
||||||
### What is imgupload?
|
### What is imgupload?
|
||||||
imgupload is a Flask + uWSGI application to serve as an all-purpose image/file uploader over POST requests.
|
imgupload is a Flask + uWSGI application to serve as an all-purpose image/file uploader over POST requests.
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
Make sure you install the dependencies first. To do this, run `sudo python3 -m pip install -r requirements.txt`.
|
Make sure you install the dependencies first. To do this, run `sudo python3 -m pip install -r requirements.txt`.
|
||||||
To deploy imgupload, run `flask run`.
|
To deploy imgupload, run `flask run`.
|
||||||
|
@ -8,7 +8,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
||||||
# Check if the script was run as root
|
# Check if the script was run as root
|
||||||
if os.geteuid() != 0:
|
if os.geteuid() != 0:
|
||||||
exit("Root privileges are necessary to run this script.\nPlease try again as root or using `sudo`.")
|
exit("Root privileges are necessary to run this script.\nPlease try again as root or using `sudo`.")
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user