diff options
author | Dave Reisner <d@falconindy.com> | 2011-08-17 03:36:01 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-08-18 10:11:27 +0200 |
commit | 35573fe147a76a90baf82a13f945daca184a2eda (patch) | |
tree | 7213cd55d78c714dfc5c1ace843d97ba04b90469 /archrelease | |
parent | 5688152f413f90317fb7442083a633533108a1da (diff) | |
download | devtools-35573fe147a76a90baf82a13f945daca184a2eda.tar.gz devtools-35573fe147a76a90baf82a13f945daca184a2eda.tar.xz |
archrelease: declare known_files as an array
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'archrelease')
-rwxr-xr-x | archrelease | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archrelease b/archrelease index 24e950c..af75b8f 100755 --- a/archrelease +++ b/archrelease @@ -46,13 +46,13 @@ if [[ ! -d "repos/$1" ]]; then mkdir "repos/${1}" svn add -q "repos/${1}" fi -known_files=$(svn ls "trunk") -for file in $known_files; do +IFS=$'\n' read -r -d '' -a known_files < <(svn ls "trunk") +for file in "${known_files[@]}"; do if [[ ${file:(-1)} = '/' ]]; then abort "archrelease: subdirectories are not supported in package directories!" fi done -for file in $known_files; do +for file in "${known_files[@]}"; do svn copy -q -r HEAD "trunk/$file" "repos/${1}/" done svn commit -q -m "archrelease: copy trunk to ${1}" || abort |