Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
4d000a6e
Commit
4d000a6e
authored
Dec 01, 2015
by
Rohit Gupta
Browse files
update for sudo check
parent
25b3eeb4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/run_exec_autotests.bash
View file @
4d000a6e
...
...
@@ -398,10 +398,12 @@ else
fi
tmpfile
=
`
mktemp
`
echo
\'
$passwd
\'
|
sudo
-S
-v
>
&
$tmpfile
echo
\'
$passwd
\'
|
sudo
echo
$HOME
>
&
$tmpfile
tstsudo
=
`
cat
$tmpfile
`
if
[
"
$tstsudo
"
!=
""
]
;
then
if
[
"
$tstsudo
"
!=
"
$HOME
"
]
;
then
echo
"User might not have sudo privileges. Exiting"
echo
"tstsudo =
$tstsudo
"
exit
fi
echo
"tstsudo =
$tstsudo
"
rm
-fr
$tmpfile
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment