summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/med-xpi-unpack16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/med-xpi-unpack b/src/med-xpi-unpack
index 9c66c89..2a22377 100755
--- a/src/med-xpi-unpack
+++ b/src/med-xpi-unpack
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (c) 2008 Alexander Sack, Sasa Bodiroza
# Description: Script to unpack xpifile to outdir
@@ -24,10 +24,10 @@
XPIFILE=$1;
OUTDIR=$2;
-function usage() {
- echo -e "med-xpi-unpack - Script to unpack XPI file to output directory.\n";
+usage() {
+ echo "med-xpi-unpack - Script to unpack XPI file to output directory.\n";
echo "To run it call:";
- echo -e "$ med-xpi-unpack input_xpi_file output_directory\n";
+ echo "$ med-xpi-unpack input_xpi_file output_directory\n";
echo " input_xpi_file - packed XPI source tree";
echo " output_directory - location where the unpacke XPI file is placed";
exit 1;
@@ -38,20 +38,20 @@ if [ $1 = "--help" -o $1 = "-h" ] ; then
fi;
if [ -z $XPIFILE ] ; then
- echo -e "Missing XPI file.\n";
+ echo "Missing XPI file.\n";
usage;
fi;
if [ -z $OUTDIR ] ; then
- echo -e "Missing output directory.\n";
+ echo "Missing output directory.\n";
usage;
fi;
if [ -d $OUTDIR ] ; then
- echo -e "E: Output directory already exists.\n";
+ echo "E: Output directory already exists.\n";
usage;
fi;
if [ ! -f $XPIFILE ] ; then
- echo -e "E: XPI file doesn't exist.\n";
+ echo "E: XPI file doesn't exist.\n";
usage;
fi;