Skip to content

Commit

Permalink
scripts/BuildScripts/KernelScripts/buildKernel.sh: cleanup input checks
Browse files Browse the repository at this point in the history
  • Loading branch information
austin987 committed Dec 20, 2020
1 parent cba4cfb commit 1067915
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions scripts/BuildScripts/KernelScripts/buildKernel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,28 +21,19 @@ set -e
# You should have received a copy of the GNU General Public License
# along with PrawnOS. If not, see <https://www.gnu.org/licenses/>.

if [ -z "$1" ]
then
if [ -z "$1" ]; then
echo "No kernel version supplied"
exit 1
fi
if [ -z "$2" ]
then
elif [ -z "$2" ]; then
echo "No resources directory"
exit 1
fi
if [ -z "$3" ]
then
elif [ -z "$3" ]; then
echo "No build directory supplied"
exit 1
fi
if [ -z "$4" ]
then
elif [ -z "$4" ]; then
echo "No PrawnOS initramfs supplied"
exit 1
fi
if [ -z "$" ]
then
elif [ -z "$5" ]; then
echo "No PrawnOS target arch supplied"
exit 1
fi
Expand Down

0 comments on commit 1067915

Please sign in to comment.