diff options
author | Martijn Kaijser <martijn@xbmc.org> | 2015-10-10 11:29:40 +0200 |
---|---|---|
committer | Martijn Kaijser <martijn@xbmc.org> | 2015-10-10 11:29:40 +0200 |
commit | 77a8f09a401e9a9f4336a7d057d39ee68698e691 (patch) | |
tree | 228554ad7a0c489fc32c5733ef5a00be3c287d31 /tools | |
parent | 58b3d30d354bcb8d30752bfa0a070bbca86fdcf2 (diff) | |
parent | 9187259cc2c02cbb73bc27cd824238f3bf1f6222 (diff) |
Merge pull request #6910 from samnazarko/fix_sdk_rbp
[rbp] tools: only use sudo if we have it on the system
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rbp/setup-sdk.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/rbp/setup-sdk.sh b/tools/rbp/setup-sdk.sh index 0452e4fe91..c261640083 100755 --- a/tools/rbp/setup-sdk.sh +++ b/tools/rbp/setup-sdk.sh @@ -23,9 +23,9 @@ fi if [ -d $XBMCPREFIX ] then - [ -O $XBMCPREFIX ] || SUDO="sudo" + [ -O $XBMCPREFIX ] || { command -v sudo >/dev/null 2>&1 && SUDO="sudo"; } else - [ -w $(dirname $XBMCPREFIX) ] || SUDO="sudo" + [ -w $(dirname $XBMCPREFIX) ] || { command -v sudo >/dev/null 2>&1 && SUDO="sudo"; } fi if [ -z "$KODI_MIRROR" ] |