mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-27 05:29:32 +00:00
image_builder: new name for temp scripts
This commit is contained in:
@@ -87,7 +87,7 @@ execute() {
|
||||
if [[ $# > 1 ]]; then
|
||||
echo_stamp "Copy script to chroot fs"
|
||||
|
||||
local SCRIPT_NAME="$(tr -dc 'A-F0-9' < /dev/urandom | dd bs=1 count=16 2>/dev/null)"
|
||||
local SCRIPT_NAME="$(basename $2).$(tr -dc 'A-F0-9' < /dev/urandom | dd bs=1 count=7 2>/dev/null)"
|
||||
local SCRIPT_DIR="${MOUNT_POINT}/root"
|
||||
|
||||
cp "$2" "${SCRIPT_DIR}/${SCRIPT_NAME}"
|
||||
|
||||
Reference in New Issue
Block a user