Skip to content

Commit

Permalink
These are the minor shell improvements that everyone found useful fro…
Browse files Browse the repository at this point in the history
…m my previous pull request.
  • Loading branch information
filbeofITK committed Sep 15, 2020
1 parent 2d10c7d commit f78bbc6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ ENV CC_UID ${CC_UID}
ENV TINI_VERSION v0.18.0

# Create user and group for CodeCompass.
RUN groupadd -r codecompass -g ${CC_GID} && \
useradd -r --no-log-init -M -u ${CC_UID} -g codecompass codecompass
RUN groupadd --system codecompass --gid ${CC_GID} && \
useradd --system --no-log-init --no-create-home --uid ${CC_UID} --gid codecompass codecompass

# Copy CodeCompass installed directory. (Change permission of the CodeCompass package.)
# TODO: only the webserver's binaries should be included in this image.
Expand Down
4 changes: 2 additions & 2 deletions scripts/remover.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ FILES=$(ls *.js)

for FILE in $FILES
do
if [ -f $FILE ]
if [ -f "$FILE" ]
then
sed -i -e "/if (typeof Int64 === 'undefined' && typeof require === 'function') {/,+2 d" $FILE
sed -i -e "/if (typeof Int64 === 'undefined' && typeof require === 'function') {/,+2 d" "$FILE"
fi
done

0 comments on commit f78bbc6

Please sign in to comment.