diff options
author | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-11 01:09:25 -0500 |
---|---|---|
committer | Joshua Ismael Haase Hernández <hahj87@gmail.com> | 2011-04-11 01:09:25 -0500 |
commit | 3fb5f8efef231dd7784be880934cd106603ab6f1 (patch) | |
tree | b3f62a0fb712de3f0c5fea92f7171d6fbf3cd2b2 /get_license.sh | |
parent | 61ee5da8b31b44e80e008619a32ca886d8799646 (diff) |
bash-port ready for testing.
Diffstat (limited to 'get_license.sh')
-rwxr-xr-x | get_license.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/get_license.sh b/get_license.sh index a7241a1..0da58cb 100755 --- a/get_license.sh +++ b/get_license.sh @@ -31,12 +31,12 @@ rm -rf $dir/* tempdir=$(mktemp -d) cd $tempdir -a=($(cut -d: -f1 $docs/pending*.txt)) -echo ${a[@]} +pending=($(cut -d: -f1 $docs/pending*.txt)) +echo ${pending[@]} -for x in ${a[@]}; do - b=( $(ls $repo/*/os/*/$x*) ) - for y in ${b[@]}; do +for pkg in ${pending[@]}; do + pkg_in_repo=( $(ls ${repo}/*/os/*/${pkg}*) ) + for y in ${pkg_in_repo[@]}; do echo "chmod +r $y" chmod +r $y echo "tar -xf $y usr/share/licenses" |