aboutsummaryrefslogtreecommitdiff
path: root/lib/main.bash
diff options
context:
space:
mode:
Diffstat (limited to 'lib/main.bash')
-rw-r--r--lib/main.bash7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/main.bash b/lib/main.bash
index 8ee72dd..67d05c7 100644
--- a/lib/main.bash
+++ b/lib/main.bash
@@ -230,7 +230,12 @@ discover_system_arch() {
discover_system_distro() {
if [[ -f /etc/os-release ]]
then
- printf "%s" "$(source /etc/os-release && printf "%s" "$NAME" | awk '{print tolower($0)}' | sed 's@[/+ ]@_@g')"
+ (
+ source /etc/os-release
+ printf "%s" "$NAME" \
+ | awk '{print tolower($0)}' \
+ | sed 's@[/+ ]@_@g'
+ )
return
fi