summaryrefslogtreecommitdiff
path: root/generator/quick.sh
diff options
context:
space:
mode:
authorLudovic Pouzenc <ludovic@pouzenc.fr>2016-03-12 00:52:58 +0100
committerLudovic Pouzenc <ludovic@pouzenc.fr>2016-03-12 00:52:58 +0100
commitea522742c58e4819e4c4b2db29f77e0bf1b5b5eb (patch)
tree67056d8e1266471c9a2cba2fc60a23278be26aff /generator/quick.sh
parentf7858bced18056208052ddb95ffa0285067a71e4 (diff)
downloadchd_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-xgenerator/quick.sh5
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/