Fix archive extraction path - use 'foxshell' instead of 'foxshell-main'
This commit is contained in:
parent
652c9dee33
commit
7895365af9
1 changed files with 5 additions and 5 deletions
10
foxshell.zsh
10
foxshell.zsh
|
@ -266,7 +266,7 @@ if '[' '-n' "${_foxshell_bootstrap-}" ']'; then
|
|||
|
||||
dir="$FOXSHELL"/foxshell
|
||||
FOXSHELL_PACKAGE_NAME='foxshell'
|
||||
FOXSHELL_PACKAGE_DIR="$tmpdir"/foxshell-main
|
||||
FOXSHELL_PACKAGE_DIR="$tmpdir"/foxshell
|
||||
FOXSHELL_PACKAGE_URL="$FOXSHELL_URL"
|
||||
|
||||
# Download from git repository
|
||||
|
@ -285,7 +285,7 @@ if '[' '-n' "${_foxshell_bootstrap-}" ']'; then
|
|||
'exit' '1'
|
||||
fi
|
||||
|
||||
'command' 'mv' '--' "$tmpdir"/foxshell-main "$FOXSHELL_PACKAGE_DIR" || 'exit'
|
||||
|
||||
|
||||
'export' 'FOXSHELL'
|
||||
'export' 'FOXSHELL_PACKAGE_NAME'
|
||||
|
@ -293,12 +293,12 @@ if '[' '-n' "${_foxshell_bootstrap-}" ']'; then
|
|||
'export' 'FOXSHELL_PACKAGE_URL'
|
||||
|
||||
if '[' "$FOXSHELL_UPDATING" '=' '1' ']'; then
|
||||
"sh" "$tmpdir"/foxshell-main/sc/setup '-n' "$FOXSHELL" '-o' "$FOXSHELL_UPDATING" || 'exit'
|
||||
"sh" "$tmpdir"/foxshell/sc/setup '-n' "$FOXSHELL" '-o' "$FOXSHELL_UPDATING" || 'exit'
|
||||
else
|
||||
"sh" "$tmpdir"/foxshell-main/sc/setup '-n' "$FOXSHELL" || 'exit'
|
||||
"sh" "$tmpdir"/foxshell/sc/setup '-n' "$FOXSHELL" || 'exit'
|
||||
fi
|
||||
|
||||
'command' 'mv' '-f' '--' "$tmpdir"/foxshell-main "$dir" || 'exit'
|
||||
'command' 'mv' '-f' '--' "$tmpdir"/foxshell "$dir" || 'exit'
|
||||
|
||||
'trap' '-' 'ERR'
|
||||
'command' 'rm' '-rf' '--' "$tmpdir"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue