fix return statement of function which is 'echo'

This commit is contained in:
Adrien Marquès 2020-02-20 19:09:04 +01:00
parent cba3ba4b3b
commit fba096cc82
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 3 additions and 4 deletions

View File

@ -7,13 +7,12 @@ log_b="0";
# returns whether the computer has just booted a few minutes ago # returns whether the computer has just booted a few minutes ago
booted(){ at_boot(){
# onboot=`echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc`; echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc;
return echo "$(cut -d' ' -f1 /proc/uptime) > 1000;" | bc;
} }
# lock by default (if not just booted) # lock by default (if not just booted)
if [ "$(booted)" -ne 1 ]; then if [ "$(at_boot)" -ne 1 ]; then
rm "$unlock_f"; rm "$unlock_f";
fi; fi;