commit
9c02b4f38e
|
@ -104,6 +104,7 @@ function Usage
|
||||||
echo "--dry Will run osync without actually doing anything; just testing"
|
echo "--dry Will run osync without actually doing anything; just testing"
|
||||||
echo "--silent Will run osync without any output to stdout, used for cron jobs"
|
echo "--silent Will run osync without any output to stdout, used for cron jobs"
|
||||||
echo "--verbose Increases output"
|
echo "--verbose Increases output"
|
||||||
|
exit 128
|
||||||
}
|
}
|
||||||
|
|
||||||
silent=0
|
silent=0
|
||||||
|
@ -136,7 +137,10 @@ do
|
||||||
;;
|
;;
|
||||||
--help|-h)
|
--help|-h)
|
||||||
Usage
|
Usage
|
||||||
exit 0
|
;;
|
||||||
|
*)
|
||||||
|
Log "Unknown param '$i'"
|
||||||
|
Usage
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
9
osync.sh
9
osync.sh
|
@ -2049,6 +2049,7 @@ then
|
||||||
Usage
|
Usage
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
first=1
|
||||||
for i in "$@"
|
for i in "$@"
|
||||||
do
|
do
|
||||||
case $i in
|
case $i in
|
||||||
|
@ -2109,7 +2110,15 @@ do
|
||||||
--no-locks)
|
--no-locks)
|
||||||
nolocks=1
|
nolocks=1
|
||||||
;;
|
;;
|
||||||
|
*)
|
||||||
|
if [ $first == "0" ]
|
||||||
|
then
|
||||||
|
LogError "Unknown option '$i'"
|
||||||
|
Usage
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
first=0
|
||||||
done
|
done
|
||||||
|
|
||||||
# Remove leading space if there is one
|
# Remove leading space if there is one
|
||||||
|
|
Loading…
Reference in New Issue