Skip to content

Commit

Permalink
Run python3 -m pip install -r requirements.txt as non sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
ldrahnik committed Feb 16, 2023
1 parent e7960f7 commit 22a1db1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ elif [[ $(dnf install 2>/dev/null) ]]; then
dnf -y install xinput
fi
fi
python3 -m pip install -r requirements.txt

# run as non sudo: WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager.
runuser -u $SUDO_USER -- python3 -m pip install -r requirements.txt

# Checking if the pip dependencies are successfuly loaded
if [[ $? != 0 ]]; then
Expand Down

0 comments on commit 22a1db1

Please sign in to comment.