Module: nagvis Branch: master Commit: f7935c60ebdb7ac43dc4b31d025ff03053509558 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=f7935c60ebdb7ac43dc4b31d025ff03053509558
Author: Lars Michelsen <[email protected]> Date: Fri Apr 23 17:09:46 2010 +0200 #261 Installer handles subdirectories in single update targets correctly --- install.sh | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 5579dea..1ecad17 100755 --- a/install.sh +++ b/install.sh @@ -696,8 +696,9 @@ copy() { # Copy old directory contents to new directory if [ -d "$NAGVIS_PATH_BACKUP/$2" -a ! -d "$3" ]; then - # Get files to copy - FILES=`find $NAGVIS_PATH_BACKUP/$2 -type f` + # Get files and directories to copy. This takes only the elements in the + # given directory. + FILES=`find $NAGVIS_PATH_BACKUP/$2 -mindepth 1 -maxdepth 1` # Maybe exclude some files if [ "$1" != "" ]; then ------------------------------------------------------------------------------ _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
