aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xscripts/dev.sh10
-rwxr-xr-xscripts/install.sh10
-rwxr-xr-xscripts/update.sh10
-rw-r--r--src/Wallabag/CoreBundle/Helper/EntriesExport.php2
4 files changed, 22 insertions, 10 deletions
diff --git a/scripts/dev.sh b/scripts/dev.sh
index 0703ced1..28453be0 100755
--- a/scripts/dev.sh
+++ b/scripts/dev.sh
@@ -3,10 +3,14 @@
3# eg: `sh dev.sh` 3# eg: `sh dev.sh`
4 4
5COMPOSER_COMMAND='composer' 5COMPOSER_COMMAND='composer'
6REQUIRE_FILE='scripts/require.sh'
6 7
7DIR="${BASH_SOURCE}" 8if [ ! -f "$REQUIRE_FILE" ]; then
8if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi 9 echo "Cannot find $REQUIRE_FILE"
9. "$DIR/require.sh" 10 exit 1
11fi
12
13. "$REQUIRE_FILE"
10 14
11$COMPOSER_COMMAND install 15$COMPOSER_COMMAND install
12php bin/console wallabag:install 16php bin/console wallabag:install
diff --git a/scripts/install.sh b/scripts/install.sh
index de1fb8f6..affa715f 100755
--- a/scripts/install.sh
+++ b/scripts/install.sh
@@ -25,10 +25,14 @@ if [ "$IGNORE_ROOT" -eq 0 ] && [ "$EUID" == "0" ]; then
25fi 25fi
26 26
27COMPOSER_COMMAND='composer' 27COMPOSER_COMMAND='composer'
28REQUIRE_FILE='scripts/require.sh'
28 29
29DIR="${BASH_SOURCE}" 30if [ ! -f "$REQUIRE_FILE" ]; then
30if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi 31 echo "Cannot find $REQUIRE_FILE"
31. "$DIR/require.sh" 32 exit 1
33fi
34
35. "$REQUIRE_FILE"
32 36
33TAG=$(git describe --tags $(git rev-list --tags --max-count=1)) 37TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
34 38
diff --git a/scripts/update.sh b/scripts/update.sh
index e86a76db..3ef10439 100755
--- a/scripts/update.sh
+++ b/scripts/update.sh
@@ -28,10 +28,14 @@ set -e
28set -u 28set -u
29 29
30COMPOSER_COMMAND='composer' 30COMPOSER_COMMAND='composer'
31REQUIRE_FILE='scripts/require.sh'
31 32
32DIR="${BASH_SOURCE}" 33if [ ! -f "$REQUIRE_FILE" ]; then
33if [ ! -d "$DIR" ]; then DIR="$PWD/scripts"; fi 34 echo "Cannot find $REQUIRE_FILE"
34. "$DIR/require.sh" 35 exit 1
36fi
37
38. "$REQUIRE_FILE"
35 39
36rm -rf var/cache/* 40rm -rf var/cache/*
37git fetch origin 41git fetch origin
diff --git a/src/Wallabag/CoreBundle/Helper/EntriesExport.php b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
index a2aa4d13..f981ee50 100644
--- a/src/Wallabag/CoreBundle/Helper/EntriesExport.php
+++ b/src/Wallabag/CoreBundle/Helper/EntriesExport.php
@@ -188,7 +188,7 @@ class EntriesExport
188 foreach ($entry->getTags() as $tag) { 188 foreach ($entry->getTags() as $tag) {
189 $book->setSubject($tag->getLabel()); 189 $book->setSubject($tag->getLabel());
190 } 190 }
191 $filename = sha1($entry->getTitle()); 191 $filename = sha1(sprintf('%s:%s', $entry->getUrl(), $entry->getTitle()));
192 192
193 $publishedBy = $entry->getPublishedBy(); 193 $publishedBy = $entry->getPublishedBy();
194 $authors = $this->translator->trans('export.unknown'); 194 $authors = $this->translator->trans('export.unknown');