fix: error when updating on steam deck (#72)
This commit is contained in:
+1
-1
@@ -174,7 +174,7 @@ log INFO "Installing h2mm to ${ORANGE}$DESTINATION_PATH${NC}."
|
|||||||
|
|
||||||
# check if we need sudo based on destination path
|
# check if we need sudo based on destination path
|
||||||
SUDO_CMD=""
|
SUDO_CMD=""
|
||||||
if [[ ! -w "$DESTINATION_PATH" ]]; then
|
if [[ ! -w "$DESTINATION_PATH" || ( -f "$DESTINATION_PATH/h2mm" && ! -w "$DESTINATION_PATH/h2mm" ) ]]; then
|
||||||
SUDO_CMD="sudo"
|
SUDO_CMD="sudo"
|
||||||
log INFO "Destination path ${RED}requires${NC} elevated permissions, using sudo."
|
log INFO "Destination path ${RED}requires${NC} elevated permissions, using sudo."
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user