Fixes #5
This commit is contained in:
parent
ff0cdfa17f
commit
55bdb64030
1 changed files with 3 additions and 0 deletions
|
@ -5,6 +5,9 @@
|
|||
# Copyright (c) 2020 Nyr. Released under the MIT License.
|
||||
|
||||
|
||||
# Discard stdin. Needed when running from an one-liner which included a newline
|
||||
read -N 999999999 -t 0.001
|
||||
|
||||
# Detect Debian users running the script with "sh" instead of bash
|
||||
if readlink /proc/$$/exe | grep -q "dash"; then
|
||||
echo "This script needs to be run with bash, not sh"
|
||||
|
|
Loading…
Add table
Reference in a new issue