Skip to content

Commit

Permalink
Added .gitkeep to specific folders
Browse files Browse the repository at this point in the history
Modified getPokemonIcons to automatically created output folder if not existing
  • Loading branch information
Chefkeks committed Jan 25, 2021
1 parent e1e3e3b commit e8b198e
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
/.idea
README.md.*

# Ignore content of directories with user specific data
# Ignore content of directories with user specific data, keep directories itself
/access/**
/custom/**
/ddos/**
!/access/.gitkeep
!/custom/.gitkeep
!/ddos/.gitkeep

# Ignore config directory except for specific files
/config/**
Expand All @@ -14,11 +17,11 @@ README.md.*

# Ignore several icon directories + their content
# Ignoring directories itself allows to replace them with symlinks
/images/gyms
/images/gyms/**
/images/pokemon
/images/pokemon/**
/images/pokemon_PokeMiners
/images/pokemon_PokeMiners/**
/images/pokemon_ZeChrales
/images/pokemon_ZeChrales/**
!/images/gyms/.gitkeep
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.025.1
2.1.025.2
Empty file added access/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion config/config.json.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"VERSION":"2.1.025.1",
"VERSION":"2.1.025.2",
"DB_HOST":"localhost",
"DB_NAME":"your_database_name",
"DB_USER":"your_database_user",
Expand Down
Empty file added custom/.gitkeep
Empty file.
Empty file added ddos/.gitkeep
Empty file.
5 changes: 5 additions & 0 deletions getPokemonIcons.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ function is_updated($path, $file_object) {
$dest = rtrim($destination,"/") . '/';
}

// Make sure destination exists otherwise create it
if (!file_exists($dest)) {
mkdir($dest);
}

// Content dir
$content_dir = '';
if (strpos($repo_dir, '/') !== false) {
Expand Down
Empty file added images/gyms/.gitkeep
Empty file.

0 comments on commit e8b198e

Please sign in to comment.