File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ if grep -q "^-" "$tmpfile"; then
2525 if [[ " $OSTYPE " == " darwin" * ]]; then
2626 git submodule update --init --recursive
2727 else
28- sudo -u $SUDO_USER git submodule update --init --recursive
28+ if [[ -n " ${SUDO_USER:- } " ]]; then
29+ sudo -u " $SUDO_USER " git submodule update --init --recursive
30+ else
31+ git submodule update --init --recursive
32+ fi
2933 fi
3034elif grep -q " ^+" " $tmpfile " ; then
3135 # Make it easy for users who are not hacking ORFS to do the right thing,
3943if [[ " $OSTYPE " == " darwin" * ]]; then
4044 " $DIR /etc/DependencyInstaller.sh" -common -prefix=" $DIR /dependencies"
4145else
42- sudo -u $SUDO_USER " $DIR /etc/DependencyInstaller.sh" -common -prefix=" $DIR /dependencies"
46+ if [[ -n " ${SUDO_USER:- } " ]]; then
47+ sudo -u " $SUDO_USER " " $DIR /etc/DependencyInstaller.sh" -common -prefix=" $DIR /dependencies"
48+ else
49+ " $DIR /etc/DependencyInstaller.sh" -common -prefix=" $DIR /dependencies"
50+ fi
4351fi
You can’t perform that action at this time.
0 commit comments