Fix potential errors in scripts

This commit is contained in:
Abhishek Keshri 2022-08-13 17:11:48 +05:30
parent 8c7f582b53
commit c1493ce604
No known key found for this signature in database
GPG key ID: 87ABE188E6B98D1C
7 changed files with 31 additions and 31 deletions

View file

@ -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