Add set -eu

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2024-07-20 18:27:34 -07:00
parent 7e720102cd
commit 661b483313
No known key found for this signature in database
GPG Key ID: 555C902A34EC968F
2 changed files with 4 additions and 0 deletions

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.
set -eu
output(){
echo -e '\e[36m'"$1"'\e[0m';
}

View File

@ -14,6 +14,8 @@
# License for the specific language governing permissions and limitations under
# the License.
set -eu
# List available modules
# shellcheck disable=SC2010
ls -R /lib/modules/"$(uname -r)"/kernel/{drivers,fs,net,sound} | grep "\.ko" | sed 's/.ko.xz//g' | sed 's/.ko.zst//g' > blacklist.txt