1 | #!/bin/bash␊ |
2 | ␊ |
3 | #echo "==============================================="␊ |
4 | #echo "Write Installer Log"␊ |
5 | #echo "*******************"␊ |
6 | #echo ""␊ |
7 | #echo ""␊ |
8 | ␊ |
9 | # Receives two parameters␊ |
10 | # $1 = selected volume for location of the install log␊ |
11 | # $2 = text to write to the installer log␊ |
12 | ␊ |
13 | if [ "$#" -eq 2 ]; then␊ |
14 | ␉logLocation="$1"␊ |
15 | ␉verboseText="$2"␊ |
16 | ␉#echo "DEBUG: passed argument = $logLocation"␊ |
17 | ␉#echo "DEBUG: passed argument = $verboseText"␊ |
18 | fi␊ |
19 | ␊ |
20 | echo "${verboseText}" >> ${logLocation}/Chameleon_Error_Log.txt␊ |
21 | ␊ |
22 | ␊ |
23 | #echo "-----------------------------------------------"␊ |
24 | #echo ""␊ |
25 | exit 0 |