Codebase list kali-defaults / ea343e7
kali-treecd: fix no color if launched from the menu & minor tweaks Daniel Ruiz de Alegría 2 years ago
1 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1515
1616
1717 ## Package description ~ $ awk -F ': ' '/^Description: / {print $2}' ./example/debian/control
18 [ ! -z "${package}" ] \
18 [ -n "${package}" ] \
1919 && description="$( dpkg-query -f'${binary:Synopsis}\n' -W ${package} 2>/dev/null )"
2020
2121
2222 ## Feedback - banner
23 [ ! -z "${description}" ] \
24 && echo "> ${package} ~ ${description}"
25
23 [ -n "${description}" ] \
24 && printf "\n> \033[1;4m${package}\e[0m ~ \033[3m${description}\e[0m\n\n"
2625
2726 ## Move to location
2827 cd "${location}"
3433 [ "${folders}" = "true" ] \
3534 && folder="-d" \
3635 || folder=""
36
37 # Add colors for tree
38 if [ -x /usr/bin/dircolors ]; then
39 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
40 fi
3741
3842 ## Using tree - display output
3943 tree ${folder} -L ${depth} --noreport "${location}"