From a2efa0b32d4b2580ba8afe070b4a72f4fc3dd59e Mon Sep 17 00:00:00 2001 From: Salvatore Stella Date: Mon, 8 Jul 2024 17:40:34 +0200 Subject: [PATCH] Lint --- package/kernelctl/kernelctl | 3 +-- package/kernelctl/package | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package/kernelctl/kernelctl b/package/kernelctl/kernelctl index f3049f603..5ad691d85 100644 --- a/package/kernelctl/kernelctl +++ b/package/kernelctl/kernelctl @@ -15,8 +15,7 @@ bl="\033[1;34m" # blue cd / # find current os version -os_version=`awk -F= '/RELEASE_VERSION/{print $2}' /usr/share/remarkable/update.conf` - +os_version=$(awk -F= '/RELEASE_VERSION/{print $2}' /usr/share/remarkable/update.conf) help() { read -r -d '' msg <<- EOM diff --git a/package/kernelctl/package b/package/kernelctl/package index 77b7f6840..31acac595 100644 --- a/package/kernelctl/package +++ b/package/kernelctl/package @@ -26,7 +26,7 @@ package() { } configure() { - os_version=`awk -F= '/RELEASE_VERSION/{print $2}' /usr/share/remarkable/update.conf` + os_version=$(awk -F= '/RELEASE_VERSION/{print $2}' /usr/share/remarkable/update.conf) if [[ "$(kernelctl list | tail -n +2 | awk '{print $2}' | grep "vanilla-$os_version")" == "" ]]; then echo "Creating a backup of the currently running kernel." kernelctl backup vanilla @@ -34,7 +34,7 @@ configure() { } preremove() { - os_version=`awk -F= '/RELEASE_VERSION/{print $2}' /usr/share/remarkable/update.conf` + os_version=$(awk -F= '/RELEASE_VERSION/{print $2}' /usr/share/remarkable/update.conf) if [[ "$(kernelctl show | tail -n 1 | grep "vanilla-$os_version")" == "" ]]; then if [[ "$(kernelctl list | tail -n +2 | awk '{print $2}' | grep "vanilla-$os_version")" == "" ]]; then echo "Unable to restore default kernel."