diff --git a/src/scripts/tools/mago.ps1 b/src/scripts/tools/mago.ps1 index b28b452c..33417595 100644 --- a/src/scripts/tools/mago.ps1 +++ b/src/scripts/tools/mago.ps1 @@ -30,7 +30,7 @@ Function Add-Mago() { $url = "https://github.com/carthage-software/mago/releases/download/$mago_tag/mago-$mago_tag-$arch_name-pc-windows-msvc.zip" Get-File -Url $url -OutFile $bin_dir\mago.zip >$null 2>&1 Expand-Archive -Path $bin_dir\mago.zip -DestinationPath $bin_dir\mago -Force >$null 2>&1 - Move-Item -Path $bin_dir\mago\mago.exe -Destination $bin_dir\mago.exe + Move-Item -Path $bin_dir\mago\mago-$mago_tag-$arch_name-pc-windows-msvc\mago.exe -Destination $bin_dir\mago.exe Add-ToProfile $current_profile 'mago' "New-Alias mago $bin_dir\mago.exe" Add-Log $tick "mago" "Added mago $mago_tag" } \ No newline at end of file diff --git a/src/scripts/tools/mago.sh b/src/scripts/tools/mago.sh index 655d2d25..6be2428f 100644 --- a/src/scripts/tools/mago.sh +++ b/src/scripts/tools/mago.sh @@ -22,7 +22,7 @@ add_mago() { [[ "$arch" = 'x86_64' || "$arch" = 'amd64' ]] && arch='x86_64' get -q -n /tmp/mago.tar.gz "https://github.com/carthage-software/mago/releases/download/$mago_tag/mago-$mago_tag-$arch-$platform.tar.gz" sudo tar -xzf /tmp/mago.tar.gz -C /tmp/ - sudo mv /tmp/mago /usr/local/bin/mago + sudo mv /tmp/mago-$mago_tag-$arch-$platform/mago /usr/local/bin/mago sudo chmod +x /usr/local/bin/mago ) >/dev/null 2>&1 add_log "${tick:?}" "mago" "Added mago $mago_tag"