Addressing review

Addressing comments from first code review and fixing travis-ci
check_journal error in prune test.

Signed-off-by: avjarami <alex.v.jaramillo@intel.com>
This commit is contained in:
avjarami
2018-03-09 13:16:34 -08:00
committed by ajch
parent 41e9090dd8
commit dc4f4e67e4
14 changed files with 494 additions and 446 deletions
+3 -5
View File
@@ -92,7 +92,7 @@ telem_restart() {
}
telem_journal_cli() {
telem_journal $@
telem_journal "$@"
}
usage() {
@@ -112,10 +112,8 @@ usage() {
exit 2
}
if [ $# -ne 1 ]; then
if [ "$1" != "journal" ]; then
if [ "$1" != "journal" ] && [ $# -ne 1 ]; then
usage
fi
fi
if [ $EUID -ne 0 ]; then
@@ -138,7 +136,7 @@ case $SUBCOMMAND in
is-active)
telem_is_active ;;
journal)
telem_journal_cli ;;
telem_journal_cli "$@" ;;
*)
notice "Unknown command passed to $SCRIPT"
usage ;;