On 02/15/2012 04:46 PM, David C. Rankin wrote:
Hack it to suit your needs... for f in ${_pkg[@]};
do
Hack in progress ;)
This might be better for the section
# create your tarballs --->
for d in ${tdedirs[@]}; do
instead of
for((i=0;i<${#tdedirs[@]};i++)); do
<---
The you can use ${d} instead of
# set current directory
current="${tdedirs[$i]}"
for example
dirs=( $(find . -maxdepth 2 -type d | sort) )
for d in ${tdedirs[@]}; do
echo ${d}
done
or you can reduce it to just
for d in $(find . -maxdepth 2 -type d | sort); do
echo "We be looking into ---> ${d}"
echo "Do stuff here like taring the directory"
done