Skip to content

Commit

Permalink
Small mistake in prefix access test
Browse files Browse the repository at this point in the history
  • Loading branch information
map588 committed Feb 17, 2025
1 parent 54ef6ec commit 8fa4e31
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ check_install_prefix(){
if [ "$requires_sudo" = true ]
then
test_dir=$(mktemp -d -t cb-test-XXXXXXXXXX)
cd test_dir
touch test
if ! sudo mv test "$test_dir" >/dev/null 2>&1
if ! sudo mv test "$sudo_prefix" >/dev/null 2>&1
then
print_warning "User has sudo permissions, but no access to $sudo_prefix."
sudo_prefix="$user_prefix"
Expand Down

0 comments on commit 8fa4e31

Please sign in to comment.