mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-01 01:14:20 +00:00
commit
cc9b516646
@ -82,4 +82,5 @@ _Optional Dependencies: **zenity** (for GUI)_
|
|||||||
- https://github.com/victort
|
- https://github.com/victort
|
||||||
- https://github.com/Wrzlprnft
|
- https://github.com/Wrzlprnft
|
||||||
- https://github.com/ananace
|
- https://github.com/ananace
|
||||||
|
- https://github.com/LovingMelody
|
||||||
- Runner Downloader inspired by https://github.com/richardtatum/sc-runner-updater
|
- Runner Downloader inspired by https://github.com/richardtatum/sc-runner-updater
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
# Contributor: https://github.com/gort818
|
# Contributor: https://github.com/gort818
|
||||||
# Contributor: https://github.com/victort
|
# Contributor: https://github.com/victort
|
||||||
# Contributor: https://github.com/Wrzlprnft
|
# Contributor: https://github.com/Wrzlprnft
|
||||||
|
# Contributor: https://github.com/LovingMelody
|
||||||
# Runner Downloader inspired by:
|
# Runner Downloader inspired by:
|
||||||
# https://github.com/richardtatum/sc-runner-updater
|
# https://github.com/richardtatum/sc-runner-updater
|
||||||
#
|
#
|
||||||
@ -86,6 +87,12 @@ if [ ! -x "$(command -v xargs)" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Checks for NixOS for NixOS specific options
|
||||||
|
if (grep '^NAME=NixOS' /etc/os-release -q 2> /dev/null ); then
|
||||||
|
is_nixos=1
|
||||||
|
else
|
||||||
|
is_nixos=0
|
||||||
|
fi
|
||||||
|
|
||||||
######## Config ############################################################
|
######## Config ############################################################
|
||||||
|
|
||||||
@ -222,6 +229,10 @@ repo="starcitizen-lug/lug-helper"
|
|||||||
releases_url="https://github.com/$repo/releases"
|
releases_url="https://github.com/$repo/releases"
|
||||||
current_version="v2.8"
|
current_version="v2.8"
|
||||||
|
|
||||||
|
# FIXME: Link
|
||||||
|
# NixOS section in Wiki
|
||||||
|
lug_wiki_nixos="https://github.com/starcitizen-lug/knowledge-base/wiki/Tips-and-Tricks"
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
############################################################################
|
############################################################################
|
||||||
############################################################################
|
############################################################################
|
||||||
@ -2497,6 +2508,15 @@ Usage: lug-helper <options>
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Detect if NixOS is being used and direct user to wiki
|
||||||
|
if [ "$is_nixos" -eq 1 ]; then
|
||||||
|
# Detect if Zenity is being used and format the links
|
||||||
|
if [ "$use_zenity" -eq 1 ]; then
|
||||||
|
lug_wiki_nixos="<a href='$lug_wiki_nixos'>$lug_wiki_nixos</a>"
|
||||||
|
fi
|
||||||
|
message info "It looks like you're using NixOS\nPlease see our wiki for NixOS-specific configuration requirements:\n\n$lug_wiki_nixos"
|
||||||
|
fi
|
||||||
|
|
||||||
# Loop the main menu until the user selects quit
|
# Loop the main menu until the user selects quit
|
||||||
while true; do
|
while true; do
|
||||||
# Configure the menu
|
# Configure the menu
|
||||||
|
Loading…
Reference in New Issue
Block a user