@@ -611,52 +611,6 @@ validate_checksum() {
611
611
fi
612
612
}
613
613
614
- # Function to install/unpack archive files
615
- install_archive () {
616
- local archive_file=" $1 "
617
- local destination_path=" $2 "
618
- local os=" $3 "
619
-
620
- if [[ " $DRY_RUN " == true ]]; then
621
- say_info " [DRY RUN] Would install archive $archive_file to $destination_path "
622
- return 0
623
- fi
624
-
625
- say_verbose " Installing archive to: $destination_path "
626
-
627
- # Create install directory if it doesn't exist
628
- if [[ ! -d " $destination_path " ]]; then
629
- say_verbose " Creating install directory: $destination_path "
630
- mkdir -p " $destination_path "
631
- fi
632
-
633
- if [[ " $os " == " win" ]]; then
634
- # Use unzip for ZIP files
635
- if ! command -v unzip > /dev/null 2>&1 ; then
636
- say_error " unzip command not found. Please install unzip to extract ZIP files."
637
- return 1
638
- fi
639
-
640
- if ! unzip -o " $archive_file " -d " $destination_path " ; then
641
- say_error " Failed to extract ZIP archive: $archive_file "
642
- return 1
643
- fi
644
- else
645
- # Use tar for tar.gz files on Unix systems
646
- if ! command -v tar > /dev/null 2>&1 ; then
647
- say_error " tar command not found. Please install tar to extract tar.gz files."
648
- return 1
649
- fi
650
-
651
- if ! tar -xzf " $archive_file " -C " $destination_path " ; then
652
- say_error " Failed to extract tar.gz archive: $archive_file "
653
- return 1
654
- fi
655
- fi
656
-
657
- say_verbose " Successfully installed archive"
658
- }
659
-
660
614
# Function to construct the base URL for the Aspire CLI download
661
615
construct_aspire_cli_url () {
662
616
local version=" $1 "
0 commit comments