diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-13 00:07:15 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-11-13 00:07:15 -0500 |
commit | a7d0da3e7fd7009c28e09f73c32f0a355819f2e6 (patch) | |
tree | 2dfc3142f699c0e85fa25741efb72dfe6b110975 | |
parent | e17b270bbfa29160beb34266533f5b2e2120041f (diff) |
libremakepkg: fix copy_log
-rwxr-xr-x | src/chroot-tools/libremakepkg | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/chroot-tools/libremakepkg b/src/chroot-tools/libremakepkg index a146627..3fa2f3d 100755 --- a/src/chroot-tools/libremakepkg +++ b/src/chroot-tools/libremakepkg @@ -29,7 +29,7 @@ # copy logs if they exist ## copy_log() { - find "${chroot_path}/build/" -maxdepth 1 -name "*\.log" -exec cp {} ./ \; + find "${copydir}/build/" -maxdepth 1 -name "*\.log" -exec cp {} ./ \; } ## @@ -89,6 +89,10 @@ main() { # Pass all arguments after -- right to makechrootpkg makechrootpkg_args+=("$@") + # not local + rootdir="${CHROOTDIR}/${CHROOT}/root" + copydir="${CHROOTDIR}/${CHROOT}/${CHROOTCOPY}" + if (( EUID )); then error "This script must be run as root" exit 1 |