Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Etn40ff committed Jul 8, 2024
1 parent 475561a commit a2efa0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions package/kernelctl/kernelctl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package/kernelctl/package
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ 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
fi
}

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."
Expand Down

0 comments on commit a2efa0b

Please sign in to comment.