Skip to content

Commit

Permalink
Misc small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cl8n committed Dec 1, 2023
1 parent f5c0b1b commit f00fd97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates curl gnupg
DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs

WORKDIR /osu-wiki
COPY package.json package-lock.json requirements.txt /osu-wiki/

# Install osu-wiki tool dependencies
COPY package.json package-lock.json requirements.txt ./
RUN npm install && npm install -g osu-wiki && pip3 install -r requirements.txt

# Run the container with UID and GID of the host
Expand Down
4 changes: 2 additions & 2 deletions meta/check-file-sizes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ warning_files="$(find "$@" -type f -size +500000c -size -1000001c)"

exec >&2

if test "$warning_files"; then
if test -n "$warning_files"; then
printf '\033[33mWarning:\033[m The following files are larger than 500kB and should be compressed if possible:\n'
printf '%s\n' "$warning_files" | sort | sed 's/^/ /'
fi

if test "$error_files"; then
if test -n "$error_files"; then
printf '\033[31mError:\033[m The following files are larger than 1MB and must be compressed:\n'
printf '%s\n' "$error_files" | sort -u | sed 's/^/ /'
exit 1
Expand Down

0 comments on commit f00fd97

Please sign in to comment.