diff --git a/usr/local/bin/snigdhaos-all-cores b/usr/local/bin/snigdhaos-all-cores index 1b0730e..5fe1030 100644 --- a/usr/local/bin/snigdhaos-all-cores +++ b/usr/local/bin/snigdhaos-all-cores @@ -1,4 +1,4 @@ -#!bin/bash +#!/bin/bash set -e # Author : Eshan Roy @@ -10,6 +10,7 @@ echo numberofcores=$(grep -c ^processor /proc/cpuinfo) +# shellcheck disable=SC2086 if [ $numberofcores -gt 1 ]; then echo "TOTAL CORES : "$numberofcores echo "Changing makeflags for "$numberofcores "cores." diff --git a/usr/local/bin/snigdhaos-graphical-target b/usr/local/bin/snigdhaos-graphical-target index 81b3e90..9c7310b 100644 --- a/usr/local/bin/snigdhaos-graphical-target +++ b/usr/local/bin/snigdhaos-graphical-target @@ -8,7 +8,8 @@ echo echo "--->> Start snigdhaos-fixes <<---" echo -kernel_cmdline(){ +kernel_cmdline() { + # shellcheck disable=SC2013 for param in $(cat /proc/cmdline); do case "${param}" in $1=*) echo "${param##*=}"; return 0 ;; @@ -16,11 +17,13 @@ kernel_cmdline(){ *) continue ;; esac done - [ -n "${2}" ] echo "${2}" + [ -n "${2}" ] && echo "${2}" return 1 } get_driver(){ + # shellcheck disable=SC2005 + # shellcheck disable=SC2046 echo $(kernel_cmdline driver) } @@ -38,6 +41,7 @@ done selection=$(get_driver) echo +# shellcheck disable=SC2086 echo "Your Selection : "$selection echo