Page 2 of 2

ascii logo for terminal

Posted: 18 Nov 2021, 22:17
by Rava
ncmprhnsbl wrote:
18 Nov 2021, 21:26
fyi, neofetch is packaged in slackware current ..
I also found 20210904_77f2afc3 - but since I was unsure what version that is I still went the neofetch.SlackBuild way. But I used neofetch-20210904_77f2afc3-noarch-1.txz as skeleton base for my module.

Could be neofetch-20210904_77f2afc3 is just neofetch-7.0.0 though.

ascii logo for terminal

Posted: 18 Nov 2021, 22:47
by ncmprhnsbl
Rava wrote:
18 Nov 2021, 22:17
Could be neofetch-20210904_77f2afc3 is just neofetch-7.0.0 though.
it would be direct from the git repo circa 2021-09-04, commit 77f2afc3 which is newer than the 7.1.0 release : https://github.com/dylanaraps/neofetch/ ... /tag/7.1.0 (august)
doubtful any of that matters much in terms of functionality..

ascii logo for terminal

Posted: 19 Nov 2021, 05:11
by Rava
ncmprhnsbl wrote:
18 Nov 2021, 22:47
it would be direct from the git repo circa 2021-09-04, commit 77f2afc3 which is newer than the 7.1.0 release : https://github.com/dylanaraps/neofetch/ ... /tag/7.1.0 (august)
doubtful any of that matters much in terms of functionality..
I wondered why some programs (not only for Slackware, but for other Linux distros as well) had this weird Date_random in its name instead of the usual version number. But that explains it. Most likely all have been git repo circa date YYYY-MM-DD commit WhAtEvEr …
I would prefer if the version number is also part of the package name since it is silly when you would have to look it up on github yourself. Oh well. You cannot have it all. Image

Added in 4 minutes 14 seconds:
Anyhow, do you know what these comments at the top of its main bash script are about:

Code: Select all

# shellcheck source=/dev/null
# shellcheck disable=2009
I have to admit that I do not get the code later on that is also about shellcheck like this one Image :

Code: Select all

    # shellcheck disable=SC2206
    dir() { pkgs=($@); ((packages+=${#pkgs[@]})); pac "$((${#pkgs[@]}-pkgs_h))";
 }
    pac() { (($1 > 0)) && { managers+=("$1 (${manager})"); manager_string+="${ma
nager}, "; }; }
    tot() {
        IFS=$'\n' read -d "" -ra pkgs <<< "$("$@")";
        ((packages+=${#pkgs[@]}));
        pac "$((${#pkgs[@]}-pkgs_h))";
    }

ascii logo for terminal

Posted: 19 Nov 2021, 06:36
by ncmprhnsbl
Rava wrote:
19 Nov 2021, 05:15
Anyhow, do you know what these comments at the top of its main bash script are about:
https://github.com/dylanaraps/neofetch/ ... Exclusions
to do with the script being compliant with shellcheck* recommendations ...up to a point..
*: https://www.shellcheck.net/

ascii logo for terminal

Posted: 19 Nov 2021, 20:05
by Rava
ncmprhnsbl wrote:
19 Nov 2021, 06:36
to do with the script being compliant with shellcheck* recommendations ...up to a point..
good to know. then these code snippets are nothing I need to understand to begin with. :)