Fix issues reported by ShellCheck in tsp 31/81831/12
authorAleksander Mistewicz <a.mistewicz@samsung.com>
Fri, 26 Aug 2016 14:43:02 +0000 (16:43 +0200)
committerAleksander Mistewicz <a.mistewicz@samsung.com>
Tue, 6 Dec 2016 15:37:13 +0000 (16:37 +0100)
commitd67067c8c0167e53b2adc58f3c3bc381c3bfdb50
treeef7004b10f2977dff46f959a7db949b407f785d2
parent6846bcb275df7f55c786c28854b1c7e564a7bd3e
Fix issues reported by ShellCheck in tsp

Move check_diff() to tsp/jobs/img_test_common.sh
Add newline at the end of 'modifed_paths' in tsp/scripts/crawler.py
so that whole lines instead of words can be read.

ShellCheck: https://github.com/koalaman/shellcheck
shellcheck -e SC1090,SC2155,SC2068,SC2145,SC2164 `find tsp -name "*.sh"`

output should report following problems only:
    tsp/common.sh: SC2148, SC2034, SC2139
    tsp/jobs/trigger_downloads.sh: SC2115
    tsp/jobs/common_prep_flash_conf.sh: SC2029
    tsp/jobs/publish.sh: SC2046, SC2029

Change-Id: I7791769a0d653c784715cdd1a8b1446fafcba1e9
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
13 files changed:
tsp/common.sh
tsp/jobs/common_prep_flash_conf.sh
tsp/jobs/img_test_common.sh
tsp/jobs/publish.sh
tsp/jobs/trigger_downloads.sh
tsp/jobs/watch_diskspace.sh
tsp/jobs/watcher.sh
tsp/scripts/common_prep_flash_conf.sh
tsp/scripts/crawler.py
tsp/scripts/free_diskspace.sh
tsp/scripts/log.sh
tsp/scripts/publish.sh
tsp/stop.sh