Fixing sudo usage for dependency installation (#3315)
Fixes #3288, the fix is same as the bug reporter suggested. JerryScript-DCO-1.0-Signed-off-by: Csaba Osztrogonác oszi@inf.u-szeged.hu
This commit is contained in:
committed by
Zoltan Herczeg
parent
3b5224b98d
commit
84f60c19ce
@@ -14,8 +14,12 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install -q -y \
|
||||
if [ "$(whoami)" != "root" ]; then
|
||||
SUDO=sudo
|
||||
fi
|
||||
|
||||
${SUDO} apt-get update -q
|
||||
${SUDO} apt-get install -q -y \
|
||||
make cmake \
|
||||
gcc gcc-multilib \
|
||||
doxygen \
|
||||
|
||||
@@ -14,7 +14,11 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
sudo apt-get update -q
|
||||
sudo apt-get install -q -y \
|
||||
if [ "$(whoami)" != "root" ]; then
|
||||
SUDO=sudo
|
||||
fi
|
||||
|
||||
${SUDO} apt-get update -q
|
||||
${SUDO} apt-get install -q -y \
|
||||
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
|
||||
qemu-user-static
|
||||
|
||||
Reference in New Issue
Block a user