Skip to content

Commit 1067915

Browse files
committed
scripts/BuildScripts/KernelScripts/buildKernel.sh: cleanup input checks
1 parent cba4cfb commit 1067915

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

scripts/BuildScripts/KernelScripts/buildKernel.sh

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,19 @@ set -e
2121
# You should have received a copy of the GNU General Public License
2222
# along with PrawnOS. If not, see <https://www.gnu.org/licenses/>.
2323

24-
if [ -z "$1" ]
25-
then
24+
if [ -z "$1" ]; then
2625
echo "No kernel version supplied"
2726
exit 1
28-
fi
29-
if [ -z "$2" ]
30-
then
27+
elif [ -z "$2" ]; then
3128
echo "No resources directory"
3229
exit 1
33-
fi
34-
if [ -z "$3" ]
35-
then
30+
elif [ -z "$3" ]; then
3631
echo "No build directory supplied"
3732
exit 1
38-
fi
39-
if [ -z "$4" ]
40-
then
33+
elif [ -z "$4" ]; then
4134
echo "No PrawnOS initramfs supplied"
4235
exit 1
43-
fi
44-
if [ -z "$" ]
45-
then
36+
elif [ -z "$5" ]; then
4637
echo "No PrawnOS target arch supplied"
4738
exit 1
4839
fi

0 commit comments

Comments
 (0)