From 77a5854a2e868fb29e6a7ea967bee52795673c74 Mon Sep 17 00:00:00 2001 From: echo <91651232+exhq@users.noreply.github.com> Date: Tue, 15 Nov 2022 14:45:26 +0330 Subject: [PATCH] `--distro=` argument now changes the `distro` info variable --- main.go | 6 +++++- utils/args.go | 4 ---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 9d2c629..278f55a 100644 --- a/main.go +++ b/main.go @@ -58,7 +58,11 @@ func handlePrint(action, format string, rest string) { } else if action == "info" || action == "infoln" { switch rest { case "distro": - utils.CutePrint(data.GetDistro(), format) + if utils.Asciiforced { + utils.CutePrint(utils.Forceddistro, format) + } else { + utils.CutePrint(data.GetDistro(), format) + } case "username": utils.CutePrint(data.GetUsername(), format) case "uptime": diff --git a/utils/args.go b/utils/args.go index e59230c..8992ebd 100644 --- a/utils/args.go +++ b/utils/args.go @@ -57,7 +57,3 @@ func Initargs() { } } } - -func Woulduwuify() bool { - return shoulduwuify -}