From bf831f9237749308754a228375da5dc4d6c81afd Mon Sep 17 00:00:00 2001 From: Matteo Forlani Date: Thu, 19 Oct 2023 15:08:41 +0200 Subject: [PATCH] automatically move .uf2 firmware after compiling --- build.sh | 2 ++ clean.sh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100755 clean.sh diff --git a/build.sh b/build.sh index 354ff8f..7566cd8 100755 --- a/build.sh +++ b/build.sh @@ -48,6 +48,8 @@ then echo "An error occured while compiling QMK. Please check for errors in the logs above ^^^^^" else echo "QMK Compiled successfully! Listing .uf2 files..." + firmwares=`ls | grep .uf2` ls | grep .uf2 echo "One of these files should be the cvntboard firmware... xoxo" + cp $firmwares ../ fi diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..56343be --- /dev/null +++ b/clean.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "Cleaning up build files..." + +rm -rf ./qmk_firmware ./*.uf2