_get_unpack_package()
{
PACKAGE=$1
+
+ if [ "x$PACKAGE" = "x" ];
+ then
+ echo "Argument missing."
+ exit 1
+ fi
+
FILEPATH=$(apt-cache show $PACKAGE | grep ^Filename | cut -d ' ' -f 2-)
if [ "x$FILEPATH" = "x" ];
ETCBASEDIR=$1
PREFIX=$2
+ if [ "x$ETCBASEDIR" = "x" ];
+ then
+ echo "Argument missing."
+ exit 1
+ fi
+
REPORT_NAME=$(basename $ETCBASEDIR)
# Report diff between debian conf and our local one
done
}
-etchdiff_system()
+etcdiff_system()
{
PACKAGES=$(dpkg --get-selections | grep 'install$' | cut -f 1 -d ' ')
{
PACKAGE=$1
+ if [ "x$PACKAGE" = "x" ];
+ then
+ echo "Argument missing."
+ exit 1
+ fi
+
if dpkg --status $PACKAGE | grep -q 'not-installed';
then
echo "Package '$PACKAGE' not installed"
{
FILE=$1
+ if [ "x$FILE" = "x" ];
+ then
+ echo "Argument missing."
+ exit 1
+ fi
+
if [ ! -e $FILE ];
then
echo "ERROR, file $FILE does not exist."