Last change
on this file since 106877 was 106061, checked in by vboxsync, 2 months ago |
Copyright year updates by scm.
|
-
Property svn:eol-style
set to
LF
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | #
|
---|
4 | # Copyright (C) 2007-2024 Oracle and/or its affiliates.
|
---|
5 | #
|
---|
6 | # This file is part of VirtualBox base platform packages, as
|
---|
7 | # available from https://www.virtualbox.org.
|
---|
8 | #
|
---|
9 | # This program is free software; you can redistribute it and/or
|
---|
10 | # modify it under the terms of the GNU General Public License
|
---|
11 | # as published by the Free Software Foundation, in version 3 of the
|
---|
12 | # License.
|
---|
13 | #
|
---|
14 | # This program is distributed in the hope that it will be useful, but
|
---|
15 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
16 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
17 | # General Public License for more details.
|
---|
18 | #
|
---|
19 | # You should have received a copy of the GNU General Public License
|
---|
20 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
21 | #
|
---|
22 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
23 | #
|
---|
24 |
|
---|
25 | set -e
|
---|
26 |
|
---|
27 | # Check environment.
|
---|
28 | if [ "x${INSTALLER_TEMP}" = "x" ]; then
|
---|
29 | echo "Required environment variable INSTALLER_TEMP is missing. Aborting installation."
|
---|
30 | exit 1;
|
---|
31 | fi
|
---|
32 |
|
---|
33 | # Backup previously installed Extension Packs before
|
---|
34 | # installation process will completely remove previously installed
|
---|
35 | # VirtualBox distribution.
|
---|
36 | EXTPACKS_ROOT_PATH="/Applications/VirtualBox.app/Contents/MacOS/ExtensionPacks"
|
---|
37 | if [ -d "${EXTPACKS_ROOT_PATH}" ]; then
|
---|
38 | cp -r "${EXTPACKS_ROOT_PATH}" "${INSTALLER_TEMP}"
|
---|
39 | fi
|
---|
40 |
|
---|
41 | exit 0;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.