From b221d2c4de9b1a18510eee5f989a49ef8754e1d1 Mon Sep 17 00:00:00 2001 From: Nathan Salapat Date: Wed, 8 Oct 2014 21:08:29 -0500 Subject: [PATCH] bug fixes Made the script run again. This update fixes the MODS_PATH issue. --- update.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update.sh b/update.sh index 95df972..30b3d9a 100755 --- a/update.sh +++ b/update.sh @@ -2,11 +2,12 @@ #This script should pull a list of the directories in the parent folder, cd into each folder issue the Git Update command, update the files, move back to the parent directory and repeat until all files have been updated, then copy the files to the main mod directory. -# Path to the directory with mods -MODS_PATH=. -#Move to the parent directory so the script can self update. +#Move up to parent folder cd .. +#Grab the path of the root folder all mods are in. +MODS_PATH=`pwd` + find $MODS_PATH -maxdepth 1 -type d -print0 | while read -d $'\0' dir do echo "$dir" #Prints the current directory, useful for debugging and logs, pointless right now.