From a8f58f78e5e5848db7d56c06fcb77220ea5c85db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Canek=20Pel=C3=A1ez=20Vald=C3=A9s?= Date: Wed, 14 Aug 2019 10:42:39 -0500 Subject: [PATCH] Add CI. --- .gitlab-ci.yml | 3 +++ kerninst | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..183d9ff --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,3 @@ +test: + script: + - /bin/true diff --git a/kerninst b/kerninst index 19a5014..91fb6a8 100644 --- a/kerninst +++ b/kerninst @@ -1,6 +1,6 @@ #!/bin/bash -# Copyright © 2016-2017 Canek Peláez Valdés +# Copyright © 2016-2019 Canek Peláez Valdés # Kerninst is free software: you can redistribute it and/or modify it under the # terms of the GNU General Public License as published by the Free Software @@ -68,7 +68,7 @@ if [ ! -d "/usr/src/${KERNEL_DIR}" ] || [ ! -f "/usr/src/${KERNEL_DIR}/Makefile" fi # Get kernel version from symbolic link -KERNEL_VERSION=$(readlink /usr/src/linux | sed "s/^linux-//g") +KERNEL_VERSION=$(readlink "/usr/src/linux" | sed "s/^linux-//g") # Check for a valid kernel version if [ "${KERNEL_VERSION}" == "" ] || [[ "${KERNEL_VERSION}" =~ \ |\' ]]; then -- GitLab