Skip to content

Commit dfd1aaa

Browse files
austin987SolidEva
authored andcommitted
scripts/BuildScripts/KernelScripts/buildPerf.sh: cleanup input checks
1 parent 33ece20 commit dfd1aaa

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

scripts/BuildScripts/KernelScripts/buildPerf.sh

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,23 @@ 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
2827
fi
29-
if [ -z "$2" ]
30-
then
28+
if [ -z "$2" ]; then
3129
echo "No resources directory"
3230
exit 1
3331
fi
34-
if [ -z "$3" ]
35-
then
32+
if [ -z "$3" ]; then
3633
echo "No build directory supplied"
3734
exit 1
3835
fi
39-
if [ -z "$4" ]
40-
then
36+
if [ -z "$4" ]; then
4137
echo "No PrawnOS initramfs supplied"
4238
exit 1
4339
fi
44-
if [ -z "$" ]
45-
then
40+
if [ -z "$5" ]; then
4641
echo "No PrawnOS target arch supplied"
4742
exit 1
4843
fi

0 commit comments

Comments
 (0)