Skip to content

Commit

Permalink
Fixes bug when usaging the fix-chown script
Browse files Browse the repository at this point in the history
  • Loading branch information
raugfer committed Sep 9, 2024
1 parent 672d8ab commit 45ba21d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/npm/garaga_rs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ ENV PATH="$HOME/n/bin/:$PATH"

WORKDIR /garaga/tools/npm/garaga_rs

CMD npm ci && npm run build && npm pack && cd /garaga/ && ./fix-chown.sh
CMD npm ci && npm run build && npm pack && ./fix-chown.sh ../..
2 changes: 1 addition & 1 deletion tools/npm/garaga_rs/fix-chown.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh
# This script will apply the current folder ownership to its contents recursively
# It is useful to fix up the ownership of files handled by a docker container
FOLDER="$(dirname "$0")"
FOLDER="${1:-$(dirname "$0")}"
UID=$(stat -c "%u" "$FOLDER")
GID=$(stat -c "%g" "$FOLDER")
chown -R "$UID:$GID" "$FOLDER"

0 comments on commit 45ba21d

Please sign in to comment.