14 lines
322 B
Plaintext
14 lines
322 B
Plaintext
|
#!/bin/bash
|
||
|
set -eux
|
||
|
set -o pipefail
|
||
|
|
||
|
sudo mkdir -p $TMP_MOUNT_PATH/usr/share/pkg-map/
|
||
|
|
||
|
for ELEMENT in $IMAGE_ELEMENT ; do
|
||
|
for DIR in ${ELEMENTS_PATH//:/ }; do
|
||
|
if [ -f "$DIR/$ELEMENT/pkg-map" ]; then
|
||
|
sudo cp $DIR/$ELEMENT/pkg-map $TMP_MOUNT_PATH/usr/share/pkg-map/$ELEMENT
|
||
|
fi
|
||
|
done
|
||
|
done
|