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
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
sudo apt-get update -q
|
if [ "$(whoami)" != "root" ]; then
|
||||||
sudo apt-get install -q -y \
|
SUDO=sudo
|
||||||
|
fi
|
||||||
|
|
||||||
|
${SUDO} apt-get update -q
|
||||||
|
${SUDO} apt-get install -q -y \
|
||||||
make cmake \
|
make cmake \
|
||||||
gcc gcc-multilib \
|
gcc gcc-multilib \
|
||||||
doxygen \
|
doxygen \
|
||||||
|
|||||||
@@ -14,7 +14,11 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
sudo apt-get update -q
|
if [ "$(whoami)" != "root" ]; then
|
||||||
sudo apt-get install -q -y \
|
SUDO=sudo
|
||||||
|
fi
|
||||||
|
|
||||||
|
${SUDO} apt-get update -q
|
||||||
|
${SUDO} apt-get install -q -y \
|
||||||
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
|
gcc-arm-linux-gnueabihf libc6-dev-armhf-cross \
|
||||||
qemu-user-static
|
qemu-user-static
|
||||||
|
|||||||
Reference in New Issue
Block a user