From c352aa4f3affd15d1f2970f76a70512cb65ac5ce Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Mon, 7 Sep 2020 20:09:26 +0200 Subject: [PATCH] NanoDroid-Overlay: ignore commented out lines --- Full/system/xbin/nanodroid-overlay | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Full/system/xbin/nanodroid-overlay b/Full/system/xbin/nanodroid-overlay index b373825..c68a494 100755 --- a/Full/system/xbin/nanodroid-overlay +++ b/Full/system/xbin/nanodroid-overlay @@ -338,12 +338,12 @@ case ${opt} in -r | --remove ) overrides_remove "${@}" ;; -s | --show ) overrides_list_non ;; -c | --clear ) overrides_clear ;; - -x | --create ) overrides_add "$(cat "${config}")" ;; + -x | --create ) overrides_add "$(grep -v '^#' "${config}")" ;; -g | --genconfig ) overrides_genconfig ;; -u | --update ) overrides_clear - overrides_add "$(cat "${config}")" + overrides_add "$(grep -v '^#' "${config}")" ;; * ) show_help ;;