Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

free -b Error #808

Open
witt-bit opened this issue Dec 20, 2024 · 0 comments
Open

free -b Error #808

witt-bit opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels

Comments

@witt-bit
Copy link

I'm submitting a ... (check one with "x")

[x] bug report
[ ] new distro request

Bug report

=> search Github for a similar issue or PR before submitting
=> download the latest revision from Github and check if the bug is still present
   -> https://github.com/KittyKatt/screenFetch/raw/master/screenfetch-dev
=> Show us the output of: screenfetch -v

New distro request

Distro name:
Homepage:
Distro logo:
Package manager:

Show us the output of
 => lsb_release -sirc
 => cat /etc/os-release
 => ls -1 /etc/*-release

Error near line 1892

mem=$(free -b | "${AWK}" -F ':' 'NR==2{print $2}' | "${AWK}" '{print $1"-"$6}')
usedmem=$((mem / 1024 / 1024))
totalmem=$((${mem//-*} / 1024 / 1024))

Command free -b error

free: Multiple unit options don't make sense.

My OS is manjaro

$ bash screenfetch-dev

screenfetch-dev: 行 1892: -: 语法错误:需要操作数(错误记号是 "-")

 ██████████████████  ████████     witt@witt-cool
 ██████████████████  ████████     OS: Manjaro 24.2.1 Yonada
 ██████████████████  ████████     Kernel: x86_64 Linux 6.12.4-1-MANJARO
 ██████████████████  ████████     Uptime: 3d 9h 14m
 ████████            ████████     Packages: 1378
 ████████  ████████  ████████     Shell: zsh 5.9
 ████████  ████████  ████████     Resolution: 3840x1080
 ████████  ████████  ████████     DE: KDE
 ████████  ████████  ████████     WM: KWin
 ████████  ████████  ████████     GTK Theme: WhiteSur-Dark-solid-alt-blue [GTK2/3]
 ████████  ████████  ████████     Icon Theme: Tela-circle-manjaro-light
 ████████  ████████  ████████     Disk: 215G / 459G (50%)
 ████████  ████████  ████████     CPU: AMD Ryzen 5 4500U with Radeon Graphics @ 6x 2.375GHz
 ████████  ████████  ████████     GPU: AMD Radeon Graphics (radeonsi, renoir, LLVM 18.1.8, DRM 3.59, 6.12.4-1-MANJARO)
                                  RAM: -
@KittyKatt KittyKatt added the bug label Dec 26, 2024
@KittyKatt KittyKatt self-assigned this Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants