mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 19:26:33 +00:00
Resolve AppImage binary path correctly when running it as root (#490)
Currently, when the AppImage was being ran as `root` we would attempt to run `./usr/bin/etcher`, assuming we were inside the AppDir already and the relative path would resolve correctly. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
9895773b6c
commit
f49e2982e5
@ -35,7 +35,7 @@ error() {
|
||||
|
||||
# Check if we're running as root
|
||||
if [ "$EUID" -eq 0 ]; then
|
||||
./$binary
|
||||
$APPDIR/$binary
|
||||
else
|
||||
|
||||
# Determine a unique mountpoint based on the current mount point.
|
||||
|
Loading…
x
Reference in New Issue
Block a user