-
-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Knight
committed
Apr 16, 2019
1 parent
f139ad1
commit 91e3949
Showing
1 changed file
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3068,10 +3068,10 @@ _EOF_ | |
# Download_Install 'https://file.com/file' /etc/install_here | ||
# dps_index=$software_id Download_Install 'conf_0' /etc/conf.conf | ||
# Optional input variables: | ||
# fallback_url='http...' = URL to use if e.g. grabbing URL from api.github.com fails: https://dietpi.com/phpbb/viewtopic.php?p=17390#p17390 | ||
# fallback_url='http...' = URL to use if e.g. grabbing URL from api.github.com fails: https://dietpi.com/phpbb/viewtopic.php?p=17390#p17390 | ||
# no_check_url=[01] = Optionally disable URL check | ||
# dps_index=$software_id = Download from DietPi GitHub repo based on software ID/index | ||
# DEPS_LIST='pkg1 ...' = Install APT dependency packages | ||
# DEPS_LIST='pkg1 ...' = Install APT dependency packages | ||
# NB: This does not support installs that require user input (eg: a whiptail prompt for deb installs) | ||
Download_Install(){ | ||
|
||
|
@@ -15160,7 +15160,7 @@ _EOF_ | |
#List unique software names and ID's | ||
elif [[ $1 == 'list' ]]; then | ||
|
||
for i in ${!aSOFTWARE_INSTALL_STATE[@]} | ||
for (( i=0; i<${#aSOFTWARE_INSTALL_STATE[@]}; i++)) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
MichaIng
Owner
|
||
do | ||
|
||
local string='' | ||
|
@@ -15169,6 +15169,10 @@ _EOF_ | |
|
||
string="\e[32mID $i | " | ||
|
||
elif [[ ! ${aSOFTWARE_WHIP_NAME[$i]} ]]; then | ||
|
||
string="\e[91mID $i | DEV USE: AVAILABLE SOFTWARE ID $i" | ||
|
||
else | ||
|
||
string="\e[0mID $i | " | ||
|
@Fourdee
This does not work, since unused indices are not pre-generated, so ${#aSOFTWARE_INSTALL_STATE[@]} does not match the highest index.
I will create a separate command argument:
free