mirror of
https://github.com/PapirusDevelopmentTeam/papirus-folders.git
synced 2024-09-19 11:08:48 -04:00
Parsable list of colors when executing in pipe/subshell
This commit is contained in:
parent
d3d4f0c28b
commit
cce23c2918
1 changed files with 8 additions and 4 deletions
|
@ -509,12 +509,16 @@ main() {
|
|||
do_restore_color
|
||||
;;
|
||||
list-colors)
|
||||
cat <<- EOF
|
||||
List of available colors:
|
||||
if [ -t 1 ]; then
|
||||
cat <<- EOF
|
||||
List of available colors:
|
||||
|
||||
$(list_colors)
|
||||
$(list_colors)
|
||||
|
||||
EOF
|
||||
EOF
|
||||
else
|
||||
list_colors
|
||||
fi
|
||||
;;
|
||||
update-icon-caches)
|
||||
verify_privileges
|
||||
|
|
Loading…
Reference in a new issue