Chameleon

Chameleon Commit Details

Date:2011-09-20 09:09:42 (12 years 10 months ago)
Author:blackosx
Commit:1543
Parents: 1542
Message:Forgot to add the InstallLog.sh file to svn
Changes:
A/branches/blackosx/package/Scripts/Install/InstallLog.sh

File differences

branches/blackosx/package/Scripts/Install/InstallLog.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
echo "==============================================="
echo "InstallLog: Create/Append installation log"
echo "**********************************************"
# Creates text file named 'Chameleon_Installer_Fail_Log.txt'
# at the root of the target volume. This is to help show the
# user why the installation process failed (even though the
# package installer ends reading 'Installation Successful'.
# Receives two parameters
# $1 = selected volume for location of the install log
# $2 = text to write to the installer log
if [ "$#" -eq 2 ]; then
logLocation="$1"
verboseText="$2"
#echo "DEBUG: passed argument = $logLocation"
#echo "DEBUG: passed argument = $verboseText"
else
echo "Error - wrong number of values passed"
exit 9
fi
logfile="${logLocation}"/Chameleon_Installer_Fail_Log.txt
if [ -f "${logfile}" ]; then
echo "${verboseText}" >> "${logLocation}"/Chameleon_Installer_Fail_Log.txt
else
echo "${verboseText}" > "${logLocation}"/Chameleon_Installer_Fail_Log.txt
fi
exit 0

Archive Download the corresponding diff file

Revision: 1543