Skip to content

Commit

Permalink
Update sync_overrides.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
juraj-hrivnak authored Nov 13, 2023
1 parent cb628c1 commit 26c1fa7
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pax/sync_overrides.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

RED='\033[0;31m'
GREEN='\033[0;32m'

sync_directory() {
source_dir="$1"
dest_dir="modpack/overrides"
Expand All @@ -8,9 +11,14 @@ sync_directory() {
rm -rf "$dest_dir/$source_dir"
fi

cp -r "../$source_dir" "$dest_dir/$source_dir"

echo "$source_dir synced!"
if [ -d "../$source_dir" ]; then
cp -r "../$source_dir" "$dest_dir/$source_dir"
echo "${GREEN}$source_dir synced"
else
echo "${RED}$source_dir not found"
fi


}

echo "Started syncing files!"
Expand Down

0 comments on commit 26c1fa7

Please sign in to comment.