Chameleon Applications

Chameleon Applications Svn Source Tree

Root/branches/blackosx/trunk/PackageBuilder/Main_Package_Elements/Scripts/CheckProceed.sh

  • Property svn:executable set to *
1#!/bin/bash
2
3echo "==============================================="
4echo "Check Proceed - Can the script continue?"
5echo "******************************************"
6
7# Receives Target Disk and Target Device
8# Checks the selected volume is present and the disk
9# is partitioned.
10
11if [ "$#" -eq 2 ]; then
12targetVolume="$1"
13targetDevice="$2"
14echo "DEBUG: passed argument for targetVolume = $targetVolume"
15echo "DEBUG: passed argument for targetDevice = $targetDevice"
16fi
17
18if [ -z "$targetVolume" ]; then
19echo "Cannot find the volume. Exiting."
20exit 1
21else
22echo "Confirming target volume exists"
23fi
24
25if [ "$targetDevice" = "$targetDevice#*disk*s" ]; then
26echo "ERROR Volume does not use slices."
27exit 1
28else
29echo "Confirming target device uses slices"
30fi
31
32echo "-----------------------------------------------"
33echo ""
34
35exit 0

Archive Download this file

Revision: 221