mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-29 16:48:24 +00:00
fix typo's provided by @dcoomber
This commit is contained in:
parent
9cca55b376
commit
a93dc564f1
@ -30,13 +30,13 @@
|
|||||||
# 8 - curl/wget missing
|
# 8 - curl/wget missing
|
||||||
# 10 - not bash!
|
# 10 - not bash!
|
||||||
#
|
#
|
||||||
#### $$VERSION$$ v1.21-pre-12-ged1cc4a
|
#### $$VERSION$$ v1.21-pre-13-g9cca55b
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
# emmbeded system may claim bash but it is not
|
# emmbeded system may claim bash but it is not
|
||||||
# check for bash like ARRAY handlung
|
# check for bash like ARRAY handlung
|
||||||
if ! (unset a; set -A a a; eval "a=(a b)"; eval '[ -n "${a[1]}" ]'; ) > /dev/null 2>&1; then
|
if ! (unset a; set -A a a; eval "a=(a b)"; eval '[ -n "${a[1]}" ]'; ) > /dev/null 2>&1; then
|
||||||
printf "Error: Current shell does not support ARRAY's, may be busbox ash shell. pls install a real bash!\n"
|
printf "Error: Current shell does not support ARRAY's, may be busybox ash shell. pls install a real bash!\n"
|
||||||
exit 10
|
exit 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# file: run_diskcusage.sh
|
# file: run_diskusage.sh
|
||||||
# example for an background job display a system value
|
# example for an background job display a system value
|
||||||
#
|
#
|
||||||
# This file is public domain in the USA and all free countries.
|
# This file is public domain in the USA and all free countries.
|
||||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
#### $$VERSION$$ v1.21-pre-13-g9cca55b
|
||||||
|
|
||||||
######
|
######
|
||||||
# parameters
|
# parameters
|
||||||
@ -37,7 +37,7 @@ fi
|
|||||||
|
|
||||||
NEWLINE=$'\n'
|
NEWLINE=$'\n'
|
||||||
|
|
||||||
# output disk usgae every $1 seconds
|
# output disk usage every $1 seconds
|
||||||
WAIT=0
|
WAIT=0
|
||||||
while sleep $WAIT
|
while sleep $WAIT
|
||||||
do
|
do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user