aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Christophe Manciot <jcmanciot@sdxlive.com>2022-04-17 07:17:17 +0200
committerJean-Christophe Manciot <jcmanciot@sdxlive.com>2022-04-17 07:17:17 +0200
commite705932c3d89df8375b4cee731da63e8d42ae136 (patch)
tree495be10097c2a4897c587f9568e5274f033d586f
parenta8a235b5fed244d0596071e2b1c365944a219694 (diff)
downloadGNS3-Labs-Collection-e705932c3d89df8375b4cee731da63e8d42ae136.tar
GNS3-Labs-Collection-e705932c3d89df8375b4cee731da63e8d42ae136.tar.gz
GNS3-Labs-Collection-e705932c3d89df8375b4cee731da63e8d42ae136.tar.bz2
GNS3-Labs-Collection-e705932c3d89df8375b4cee731da63e8d42ae136.tar.lz
GNS3-Labs-Collection-e705932c3d89df8375b4cee731da63e8d42ae136.tar.xz
GNS3-Labs-Collection-e705932c3d89df8375b4cee731da63e8d42ae136.zip
./qemu-rebase-image-path-for-hdx-disk.qcow2.sh
-rwxr-xr-xqemu-rebase-image-path-for-hdx-disk.qcow2.sh16
1 files changed, 10 insertions, 6 deletions
diff --git a/qemu-rebase-image-path-for-hdx-disk.qcow2.sh b/qemu-rebase-image-path-for-hdx-disk.qcow2.sh
index 5c1d2f82..fbc17b03 100755
--- a/qemu-rebase-image-path-for-hdx-disk.qcow2.sh
+++ b/qemu-rebase-image-path-for-hdx-disk.qcow2.sh
@@ -1,7 +1,10 @@
########################################################################################################################
# qemu-rebase-image-path-for-hdx-disk.qcow2.sh
########################################################################################################################
-# Copyright 2016-2019 Jean-Christophe Manciot <manciot.jeanchristophe@gmail.com>
+#
+# All rights reserved Ⓒ 2017-2022 sdxlive.com
+#
+# Written by Jean-Christophe Manciot <jcmanciot@sdxlive.com>
#
# Licensed under a Creative Commons Attribution 4.0 International License;
# you may not use this file except in compliance with the License.
@@ -19,6 +22,7 @@
#
# Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made.
# You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
+#
########################################################################################################################
########################################################################################################################
@@ -84,7 +88,7 @@ source_folder=$(pwd)
file_list=()
while IFS= read -d $'\0' -r file ; do
- file_list=("${file_list[@]}" "$file")
+ file_list=("${file_list[@]}" "$file")
done < <(find . -name "${files}" -print0)
echo -e ''$_{1..180}'\b-'
@@ -92,11 +96,11 @@ echo "For each file in the list $files"
echo -e ''$_{1..180}'\b-'
for file in "${file_list[@]}"
do
- # Going into the corresponding folder
- cd "${source_folder}/${file%/*}"
+ # Going into the corresponding folder
+ cd "${source_folder}/${file%/*}"
- # Extracting filename from file
- project_file=$(basename "$file")
+ # Extracting filename from file
+ project_file=$(basename "$file")
# Getting original "backing file"
qemu-img info "$project_file" > "$project_file.info"