mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 02:49:05 -04:00
License button should only show for installed packages
This commit is contained in:
parent
921634eeb2
commit
d8cc314662
1 changed files with 1 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ package_menu() {
|
|||
echo "Loading package menu..."
|
||||
# for each line, check if it's supported by the package, display it if the current install state of the package is appropriate (example: don't display "install" if the package is already installed, don't display "stop service" for a package with no services)
|
||||
service_state=$(femto-utils.sh -C "$($package_dir/$1.sh -E)")
|
||||
license_button=""
|
||||
if $package_dir/$1.sh -O | grep -q 'G' && $package_dir/$1.sh -I; then license_button="--help-button --help-label License"; fi
|
||||
menu_list="\
|
||||
$(if $package_dir/$1.sh -O | grep -q 'l' && $package_dir/$1.sh -I; then echo "Run software x"; fi) \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue