Remove trailing whitespace from lines
This commit is contained in:
parent
a5a22b7c88
commit
8a95dbb0fa
@ -1,9 +1,9 @@
|
|||||||
# imgupload
|
# imgupload
|
||||||
![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/BBaoVanC/imgupload/master?color=purple) ![GitHub repo size](https://img.shields.io/github/repo-size/bbaovanc/imgupload?color=purple) ![GitHub All Releases](https://img.shields.io/github/downloads/bbaovanc/imgupload/total?color=purple) ![GitHub issues](https://img.shields.io/github/issues/bbaovanc/imgupload?color=purple) ![GitHub closed issues](https://img.shields.io/github/issues-closed/bbaovanc/imgupload?color=purple) ![GitHub](https://img.shields.io/github/license/bbaovanc/imgupload?color=purple)
|
![CodeFactor Grade](https://img.shields.io/codefactor/grade/github/BBaoVanC/imgupload/master?color=purple) ![GitHub repo size](https://img.shields.io/github/repo-size/bbaovanc/imgupload?color=purple) ![GitHub All Releases](https://img.shields.io/github/downloads/bbaovanc/imgupload/total?color=purple) ![GitHub issues](https://img.shields.io/github/issues/bbaovanc/imgupload?color=purple) ![GitHub closed issues](https://img.shields.io/github/issues-closed/bbaovanc/imgupload?color=purple) ![GitHub](https://img.shields.io/github/license/bbaovanc/imgupload?color=purple)
|
||||||
|
|
||||||
### 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