Skip to content

Commit

Permalink
Fix user (#6)
Browse files Browse the repository at this point in the history
fix: Proper user
  • Loading branch information
leocavalcante authored Oct 24, 2023
1 parent b8df3f8 commit 7b5d76e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hfctl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ analyse() {
}

docker-run() {
docker run --rm -w /opt -v ./:/opt $1 --entrypoint $2 $IMAGE ${@:3}
docker run --user $UID --rm -w /opt -v ./:/opt $1 --entrypoint $2 $IMAGE ${@:3}
}

ps() {
Expand Down
4 changes: 2 additions & 2 deletions hfctl_test
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ HFCID=runtime/hfctl.cid

function set_up_before_script() {
if [ -d $HFDIR ]; then
sudo rm -rf $HFDIR
rm -rf $HFDIR
fi
$HFCTL create $HFDIR &> /dev/null
}

function tear_down_after_script() {
sudo rm -rf $HFDIR
rm -rf $HFDIR
}

function test_should_display_help_information() {
Expand Down

0 comments on commit 7b5d76e

Please sign in to comment.