fix streq references
This commit is contained in:
@@ -20,7 +20,7 @@ DELIMITER=" || "
|
||||
INTERVAL=1
|
||||
|
||||
get_cpu_temp() {
|
||||
if streq "$(uname)" "Linux"; then
|
||||
if strcmp "$(uname)" "Linux"; then
|
||||
RETVAL=""
|
||||
# iterate over files, adjust, print out "%dC "
|
||||
for file in $CPU_TEMP_FILES;
|
||||
@@ -32,7 +32,7 @@ get_cpu_temp() {
|
||||
printf "%b" "$RETVAL" \
|
||||
| python -c "from sys import stdin; print(stdin.read().rstrip() + '\n')"
|
||||
return
|
||||
elif streq "$(uname)" "NetBSD"; then
|
||||
elif strcmp "$(uname)" "NetBSD"; then
|
||||
printf "%bC" "$(envstat -s coretemp0:'cpu0 temperature' \
|
||||
| sed 1,2d \
|
||||
| cut -d ':' -f 2 \
|
||||
@@ -59,7 +59,7 @@ get_current_desktop() {
|
||||
}
|
||||
|
||||
get_memory_usage() {
|
||||
if streq "$(uname)" "Linux"; then
|
||||
if strcmp "$(uname)" "Linux"; then
|
||||
printf "%b" \
|
||||
"$(free | head -n 2 | tail -n 1 \
|
||||
| awk '{print $3 " used / " $2 " total"}')"
|
||||
@@ -101,7 +101,7 @@ str isvalue "$CPU_TEMP_FILES" \
|
||||
while true; do
|
||||
printbar
|
||||
sleep "$INTERVAL"
|
||||
if streq $(date +'%S') 00; then
|
||||
if strcmp $(date +'%S') 00; then
|
||||
# every minute
|
||||
PUBLIC_IP="$(ifpublic)"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user