Codebase list powercat / fff8d71
helper-script clean up g0tmi1k 4 years ago
1 changed file(s) with 12 addition(s) and 14 deletion(s). Raw diff Collapse all Expand all
22 ## Generate: awk -F ': ' '/^Description: / {print $2}' debian/control
33 description="netshell features all in version 2 powershell"
44 package="powercat"
5 location="/usr/share/windows-resources/powercat"
5 location="/usr/share/windows-resources/${package}"
66
77
88 ## Define command line arguments
1515 opt="$1";
1616 shift;
1717 case "$opt" in
18 "-h")
19 banner="true" ;;
20 "-v")
21 output="true" ;;
18 #"-h")
19 # banner="true" ;;
20 #"-v")
21 # output="true" ;;
2222 "-q")
2323 banner="false";
2424 output="false";;
3030
3131
3232 ## Move to location
33 cd "${location}"
33 cd "${location}/"
3434
3535
3636 ## Feedback (-h)
4141 ## List output (-v)
4242 if [ "${output}" == "true" ]; then
4343 if [ "$( which tree )" ]; then
44 #tree -d -L 1 --prune --noreport "${location}"
45 tree -L 1 --prune --noreport "${location}"
44 tree -d -L 1 --prune --noreport "${location}"
4645 else
47 echo "${location}"
46 echo "${location}"
4847
49 #ls --color
50 #find "${location}" -maxdepth 1 -mindepth 1 -type d \
51 find "${location}" -maxdepth 1 -mindepth 1 \
52 | sort \
53 | sed -e 's/[^-][^\/]*\//-/g; s/^/ /; s/-/|/'
48 #ls --color
49 find "${location}" -maxdepth 1 -mindepth 1 -type d \
50 | sort \
51 | sed -e 's/[^-][^\/]*\//-/g; s/^/ /; s/-/|/'
5452 fi
5553 fi
5654