Dotclear

Changeset 4038:cdde7b1dcda8


Ignore:
Timestamp:
09/18/19 11:48:56 (6 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Better this way (module name check)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • build-tools/build-module.sh

    r4037 r4038  
    3333# Find module name 
    3434MOD_NAME=$(basename "$PWD") 
    35 [ -z "$MOD_NAME" ] && { echo "Unable to find module name!" ; exit 1; } 
     35if [ "$MOD_NAME" = "themes" ] || [ "$MOD_NAME" = "plugins" ] || [ -d ./plugins ] ; then 
     36  echo "Launch this command inside the module folder!" 
     37  exit 1 
     38fi 
    3639 
    3740# Copy all files to tmp dir 
Note: See TracChangeset for help on using the changeset viewer.

Sites map