diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-03-12 00:52:58 +0100 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-03-12 00:52:58 +0100 |
commit | ea522742c58e4819e4c4b2db29f77e0bf1b5b5eb (patch) | |
tree | 67056d8e1266471c9a2cba2fc60a23278be26aff /generator/quick.sh | |
parent | f7858bced18056208052ddb95ffa0285067a71e4 (diff) | |
download | chd_gestion-ea522742c58e4819e4c4b2db29f77e0bf1b5b5eb.zip chd_gestion-ea522742c58e4819e4c4b2db29f77e0bf1b5b5eb.tar.gz chd_gestion-ea522742c58e4819e4c4b2db29f77e0bf1b5b5eb.tar.bz2 |
Bugfix : dont use fixed path for source path
Diffstat (limited to 'generator/quick.sh')
-rwxr-xr-x | generator/quick.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/generator/quick.sh b/generator/quick.sh index e6240c9..1c7e7e8 100755 --- a/generator/quick.sh +++ b/generator/quick.sh @@ -17,8 +17,11 @@ # You should have received a copy of the GNU General Public License # along with CHD Gestion. If not, see <http://www.gnu.org/licenses/>. # +this=$(readlink -f $0) +src_dir=$(dirname $this) + cd /var/www/chd_gestion # Ecarsement de certains modèles générés -rsync -aib --backup-dir=../src.orig /root/chd_gestion_generator/after-bake/src/ ./src/ +rsync -aib --backup-dir=../src.orig "$src_dir/after-bake/src/" ./src/ |