Skip to content

Commit 1cabd9c

Browse files
committed
fix: UNIX-style end of strings in scripts (to avoid bash errors)
1 parent 7cc68c8 commit 1cabd9c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/model/storages/redisstorage.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ exports.User = {
132132
return {
133133
users,
134134
cursor: offset + limit,
135-
page: Math.floor(offset / limit + 1),
135+
page: Math.floor((offset / limit) + 1),
136136
pages: Math.ceil(length / limit),
137137
};
138138
});
@@ -261,7 +261,7 @@ exports.User = {
261261
*/
262262
handleAudience(pipeline, key, metadata) {
263263
const $remove = metadata.$remove;
264-
const $removeOps = $remove && $remove.length || 0;
264+
const $removeOps = ($remove && $remove.length || 0);
265265
if ($removeOps > 0) {
266266
pipeline.hdel(key, $remove);
267267
}

test/docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ COMPOSE="docker-compose -f $DC"
1616

1717
if ! [ -x "$(which docker-compose)" ]; then
1818
mkdir $DIR/.bin
19-
curl -L https://github.com/docker/compose/releases/download/1.7.1/docker-compose-`uname -s`-`uname -m` > $DIR/.bin/docker-compose
19+
curl -L https://github.com/docker/compose/releases/download/${COMPOSE_VER}/docker-compose-`uname -s`-`uname -m` > $DIR/.bin/docker-compose
2020
chmod +x $DIR/.bin/docker-compose
2121
fi
2222

0 commit comments

Comments
 (0)