Changeset 1041 for locker/deploy


Ignore:
Timestamp:
Apr 1, 2009, 11:31:29 AM (15 years ago)
Author:
mitchb
Message:
Avoid a harmless yet ominous error message when using hack autoinstallers
that have an empty tarball.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/deploy/bin/onathena

    r733 r1041  
    222222files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`
    223223numfiles=`echo "$files" | wc -l`
    224 if [ "$numfiles" -eq 1 ]; then
    225     athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -i mv \{} .
    226     rmdir "$files"
     224if [ ! -z "$files" ]; then
     225    if [ "$numfiles" -eq 1 ]; then
     226        athrun scripts gfind . -mindepth 2 -maxdepth 2 | xargs -i mv \{} .
     227        rmdir "$files"
     228    fi
    227229fi
    228230if [ -f "/mit/scripts/deploy$scriptsdev/php.ini/$deploy" ]; then
Note: See TracChangeset for help on using the changeset viewer.