File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ function rps_logInit() {
38
38
39
39
function rps_logStart() {
40
40
echo -e " Log started at: $( date -d @$time_start ) \n"
41
- echo " RetroPie-Setup version: $__version ($( git -C " $scriptdir " log -1 --pretty=format:%h) )"
41
+ echo " RetroPie-Setup version: $__version ($( sudo -u " $user " git -C " $scriptdir " log -1 --pretty=format:%h) )"
42
42
echo " System: $__platform ($__platform_arch ) - $__os_desc - $( uname -a) "
43
43
}
44
44
@@ -120,7 +120,7 @@ function updatescript_setup()
120
120
return 1
121
121
fi
122
122
local error
123
- if ! error=$( su $user -c " git pull --ff-only 2>&1 >/dev/null" ) ; then
123
+ if ! error=$( sudo -u " $user " git pull --ff-only 2>&1 > /dev/null) ; then
124
124
printMsgs " dialog" " Update failed:\n\n$error "
125
125
popd > /dev/null
126
126
return 1
@@ -680,7 +680,7 @@ function gui_setup() {
680
680
depends_setup
681
681
local default
682
682
while true ; do
683
- local commit=$( git -C " $scriptdir " log -1 --pretty=format:" %cr (%h)" )
683
+ local commit=$( sudo -u " $user " git -C " $scriptdir " log -1 --pretty=format:" %cr (%h)" )
684
684
685
685
cmd=(dialog --backtitle " $__backtitle " --title " RetroPie-Setup Script" --cancel-label " Exit" --item-help --help-button --default-item " $default " --menu " Version: $__version - Last Commit: $commit \nSystem: $__platform ($__platform_arch ) - running on $__os_desc " 22 76 16)
686
686
options=(
You can’t perform that action at this time.
0 commit comments