luckfox-pico-sdk/project/cfg/BoardConfig_IPC/luckfox-userdata-pre.sh
2024-11-18 21:03:15 +08:00

24 lines
451 B
Bash

#!/bin/bash
function lf_rm() {
for file in "$@"; do
if [ -e "$file" ]; then
echo "Deleting: $file"
rm -rf "$file"
#else
#echo "File not found: $file"
fi
done
}
# remove unused files
function remove_data()
{
lf_rm $RK_PROJECT_PACKAGE_USERDATA_DIR/*.sh
lf_rm $RK_PROJECT_PACKAGE_USERDATA_DIR/*.bmp
}
#=========================
# run
#=========================
remove_data