mirror of
https://github.com/ValdikSS/windows2usb.git
synced 2023-08-10 21:13:16 +03:00
parent
b2977a144b
commit
618f507a0a
@ -226,12 +226,16 @@ else
|
||||
if [[ "$APPIMAGE" ]];
|
||||
then
|
||||
scriptpath="$APPIMAGE"
|
||||
fi;
|
||||
fi
|
||||
|
||||
[ -f "$1" ] && PARAM1="$(readlink -f -- "$1")" || PARAM1="$1"
|
||||
[ -f "$2" ] && PARAM2="$(readlink -f -- "$2")" || PARAM2="$2"
|
||||
shift; shift;
|
||||
|
||||
privescs=(pkexec sudo)
|
||||
for privesc in ${privescs[*]}; do
|
||||
if command -v "$privesc" > /dev/null; then
|
||||
"$privesc" "$scriptpath" "$@"
|
||||
"$privesc" "$scriptpath" "$PARAM1" "$PARAM2" "$@"
|
||||
exit
|
||||
fi
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user