Commit 21d19d9f authored by g0t mi1k's avatar g0t mi1k

helper-script clean up

parent 88a04a4a
......@@ -3,7 +3,7 @@
## Generate: awk -F ': ' '/^Description: / {print $2}' debian/control
description="Collection of webshells"
package="webshells"
location="/usr/share/webshells"
location="/usr/share/${package}"
## Define command line arguments
......@@ -16,10 +16,10 @@ while [[ $# -gt 0 ]]; do
opt="$1";
shift;
case "$opt" in
"-h")
banner="true" ;;
"-v")
output="true" ;;
#"-h")
# banner="true" ;;
#"-v")
# output="true" ;;
"-q")
banner="false";
output="false";;
......@@ -31,7 +31,7 @@ done
## Move to location
cd "${location}"
cd "${location}/"
## Feedback (-h)
......@@ -44,12 +44,12 @@ if [ "${output}" == "true" ]; then
if [ "$( which tree )" ]; then
tree -d -L 1 --prune --noreport "${location}"
else
echo "${location}"
echo "${location}"
#ls --color
find "${location}" -maxdepth 1 -mindepth 1 -type d \
| sort \
| sed -e 's/[^-][^\/]*\//-/g; s/^/ /; s/-/|/'
#ls --color
find "${location}" -maxdepth 1 -mindepth 1 -type d \
| sort \
| sed -e 's/[^-][^\/]*\//-/g; s/^/ /; s/-/|/'
fi
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment