mirror of
https://github.com/kevinveenbirkenbach/linux-image-manager.git
synced 2024-11-26 00:41:04 +01:00
Solved some bugs git push
This commit is contained in:
parent
0feab7bce3
commit
57b8fe2d69
@ -201,8 +201,8 @@ fi
|
|||||||
info "Verifying image..."
|
info "Verifying image..."
|
||||||
if [[ -v image_checksum ]]
|
if [[ -v image_checksum ]]
|
||||||
then
|
then
|
||||||
info "Checking md5 checksum..." && echo "$image_checksum $image_path"| md5sum -c -||
|
(info "Checking md5 checksum..." && echo "$image_checksum $image_path"| md5sum -c -) ||
|
||||||
info "Checking sha1 checksum..." && echo "$image_checksum $image_path"| sha1sum -c -||
|
(info "Checking sha1 checksum..." && echo "$image_checksum $image_path"| sha1sum -c -) ||
|
||||||
error "Verification failed. HINT: Force the download of the image."
|
error "Verification failed. HINT: Force the download of the image."
|
||||||
else
|
else
|
||||||
warning "Verification is not possible. No checksum is defined."
|
warning "Verification is not possible. No checksum is defined."
|
||||||
@ -212,7 +212,7 @@ make_mount_folders
|
|||||||
|
|
||||||
set_partition_paths
|
set_partition_paths
|
||||||
|
|
||||||
question "Should the image be transfered to $device_path?(y/n)" && read -r transfer_image
|
question "Should the image be transfered to $device_path?(y/N)" && read -r transfer_image
|
||||||
if [ "$transfer_image" = "y" ]
|
if [ "$transfer_image" = "y" ]
|
||||||
then
|
then
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ if [ "$copy_ssh_key" == "y" ]
|
|||||||
origin_user_rsa_pub="$origin_user_home"".ssh/id_rsa.pub";
|
origin_user_rsa_pub="$origin_user_home"".ssh/id_rsa.pub";
|
||||||
if [ -f "$origin_user_rsa_pub" ]
|
if [ -f "$origin_user_rsa_pub" ]
|
||||||
then
|
then
|
||||||
mkdir -v "$target_user_ssh_folder_path" &&
|
mkdir -v "$target_user_ssh_folder_path" || warning "Folder \"$target_user_ssh_folder_path\" exists. Can't be created."
|
||||||
cat "$origin_user_rsa_pub" > "$target_authorized_keys" &&
|
cat "$origin_user_rsa_pub" > "$target_authorized_keys" &&
|
||||||
target_authorized_keys_content=$(cat "$target_authorized_keys") &&
|
target_authorized_keys_content=$(cat "$target_authorized_keys") &&
|
||||||
info "$target_authorized_keys contains the following: $target_authorized_keys_content" &&
|
info "$target_authorized_keys contains the following: $target_authorized_keys_content" &&
|
||||||
@ -415,7 +415,7 @@ fi
|
|||||||
info "Running system specific procedures..."
|
info "Running system specific procedures..."
|
||||||
if [ "$os" = "retropie" ]
|
if [ "$os" = "retropie" ]
|
||||||
then
|
then
|
||||||
question "Should the roms be copied to the system?" && read -r copy_roms
|
question "Should the roms be copied to the system?(y/N)" && read -r copy_roms
|
||||||
if [ "$copy_roms" == "y" ]
|
if [ "$copy_roms" == "y" ]
|
||||||
then
|
then
|
||||||
target_roms_path="$target_user_home_folder_path""/RetroPie/roms/" &&
|
target_roms_path="$target_user_home_folder_path""/RetroPie/roms/" &&
|
||||||
@ -424,7 +424,7 @@ if [ "$os" = "retropie" ]
|
|||||||
cp -v "$source_roms_path" "$target_roms_path" &&
|
cp -v "$source_roms_path" "$target_roms_path" &&
|
||||||
chown -vR 1000 "$target_roms_path" || error
|
chown -vR 1000 "$target_roms_path" || error
|
||||||
fi
|
fi
|
||||||
question "Should the RetroFlag specific procedures be executed?" && read -r setup_retroflag
|
question "Should the RetroFlag specific procedures be executed?(y/N)" && read -r setup_retroflag
|
||||||
if [ "$setup_retroflag" == "y" ]
|
if [ "$setup_retroflag" == "y" ]
|
||||||
then
|
then
|
||||||
info "Executing RetroFlag specific procedures..." &&
|
info "Executing RetroFlag specific procedures..." &&
|
||||||
|
Loading…
Reference in New Issue
Block a user