Move another function into bootstrap-utils.sh
This commit is contained in:
parent
2b8acebd6e
commit
b444f4636e
@ -6,6 +6,16 @@
|
|||||||
# Distributed under terms of the MIT license.
|
# Distributed under terms of the MIT license.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
mv_files_and_dirs() {
|
||||||
|
cwd="$PWD"
|
||||||
|
cd "$1"
|
||||||
|
command find . -type d -exec mkdir -p "$2/{}" ";"
|
||||||
|
command find . -type l -exec sh -c "tgt=\$(command readlink -n \"{}\"); command ln -snf \"\$tgt\" \"$2/{}\"; command rm -f \"{}\"" ";"
|
||||||
|
command find . -type f -exec mv "{}" "$2/{}" ";"
|
||||||
|
cd "$cwd"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
compile_terminfo() {
|
compile_terminfo() {
|
||||||
tname=".terminfo"
|
tname=".terminfo"
|
||||||
# Ensure the 78 dir is present
|
# Ensure the 78 dir is present
|
||||||
|
|||||||
@ -78,15 +78,6 @@ trap "cleanup_on_bootstrap_exit" EXIT
|
|||||||
dcs_to_kitty "ssh" "id="REQUEST_ID":pwfile="PASSWORD_FILENAME":pw="DATA_PASSWORD""
|
dcs_to_kitty "ssh" "id="REQUEST_ID":pwfile="PASSWORD_FILENAME":pw="DATA_PASSWORD""
|
||||||
}
|
}
|
||||||
|
|
||||||
mv_files_and_dirs() {
|
|
||||||
cwd="$PWD"
|
|
||||||
cd "$1"
|
|
||||||
command find . -type d -exec mkdir -p "$2/{}" ";"
|
|
||||||
command find . -type l -exec sh -c "tgt=\$(command readlink -n \"{}\"); command ln -snf \"\$tgt\" \"$2/{}\"; command rm -f \"{}\"" ";"
|
|
||||||
command find . -type f -exec mv "{}" "$2/{}" ";"
|
|
||||||
cd "$cwd"
|
|
||||||
}
|
|
||||||
|
|
||||||
read_base64_from_tty() {
|
read_base64_from_tty() {
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
[ "$line" = "KITTY_DATA_END" ] && return 0
|
[ "$line" = "KITTY_DATA_END" ] && return 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user