Skip to content

Commit

Permalink
tests/chown: Fix operators
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Nov 24, 2024
1 parent bc4b7e1 commit eec37c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ fi

# Install Bob.

$SUDO .bootstrap/bob install
sh bootstrap.sh
$SUDO .bootstrap/bob install > /dev/null

# Actually run the tests.

Expand Down
4 changes: 2 additions & 2 deletions tests/chown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ $SUDO rm -rf tests/chown/.bob $INSTALL_PATH

USER=bobtestuser

if [ $(uname) == "Linux" ] || [ $(uname) == "FreeBSD" ]; then
if [ $(uname) = "Linux" ] || [ $(uname) = "FreeBSD" ]; then
useradd -m $USER
elif [ $(uname) == "Darwin" ]; then
elif [ $(uname) = "Darwin" ]; then
$SUDO sysadminctl -addUser $USER
else
echo "Unsupported OS (don't know how to create a user)."
Expand Down

0 comments on commit eec37c5

Please sign in to comment.