mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2025-01-26 23:28:25 +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
|
||||
# 10 - not bash!
|
||||
#
|
||||
#### $$VERSION$$ v1.21-pre-12-ged1cc4a
|
||||
#### $$VERSION$$ v1.21-pre-13-g9cca55b
|
||||
##################################################################
|
||||
|
||||
# emmbeded system may claim bash but it is not
|
||||
# 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
|
||||
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
|
||||
fi
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
#!/bin/bash
|
||||
# file: run_diskcusage.sh
|
||||
# file: run_diskusage.sh
|
||||
# example for an background job display a system value
|
||||
#
|
||||
# This file is public domain in the USA and all free countries.
|
||||
# Elsewhere, consider it to be WTFPLv2. (wtfpl.net/txt/copying)
|
||||
#### $$VERSION$$ v1.20-0-g2ab00a2
|
||||
#### $$VERSION$$ v1.21-pre-13-g9cca55b
|
||||
|
||||
######
|
||||
# parameters
|
||||
@ -37,7 +37,7 @@ fi
|
||||
|
||||
NEWLINE=$'\n'
|
||||
|
||||
# output disk usgae every $1 seconds
|
||||
# output disk usage every $1 seconds
|
||||
WAIT=0
|
||||
while sleep $WAIT
|
||||
do
|
||||
|
Loading…
x
Reference in New Issue
Block a user