Skip to content

Commit b6b5958

Browse files
committed
build.sh: only copy frozen directory if different
1 parent c37d7b3 commit b6b5958

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ function create_frozen_fs {
2525
echo "The frozen directory will be named: $DIR_NAME_ON_BOARD"
2626
echo "The output file will be: $OUTPUT_FILE"
2727

28-
cp -r $DIR_TO_FREEZE $DIR_NAME_ON_BOARD
28+
if [ $DIR_TO_FREEZE != $DIR_NAME_ON_BOARD ]; then
29+
cp -r $DIR_TO_FREEZE $DIR_NAME_ON_BOARD
30+
fi
2931

3032
# Use on-import=extract so our frozen filesystem is unpacked to '/' in flash on import
3133
# Use --compress to compress the frozen filesystem archive

0 commit comments

Comments
 (0)