mirror of
https://github.com/TECHNOFAB11/tmux2k.git
synced 2025-12-11 23:50:08 +01:00
Fix potential errors in scripts
This commit is contained in:
parent
8c7f582b53
commit
c1493ce604
7 changed files with 31 additions and 31 deletions
|
|
@ -3,14 +3,14 @@
|
|||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
current_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
source $current_dir/utils.sh
|
||||
source "$current_dir"/utils.sh
|
||||
|
||||
get_platform()
|
||||
{
|
||||
case $(uname -s) in
|
||||
Linux)
|
||||
gpu=$(lspci -v | grep VGA | head -n 1 | awk '{print $5}')
|
||||
echo $gpu
|
||||
echo "$gpu"
|
||||
;;
|
||||
|
||||
Darwin)
|
||||
|
|
@ -41,7 +41,7 @@ main()
|
|||
gpu_label=$(get_tmux_option "@tmux2k-gpu-usage-label" "GPU")
|
||||
gpu_usage=$(get_gpu)
|
||||
echo "$gpu_label $gpu_usage"
|
||||
sleep $RATE
|
||||
sleep "$RATE"
|
||||
}
|
||||
|
||||
# run the main driver
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue