diff --git a/Other/smartctl-test-disks.sh b/Other/smartctl-test-disks.sh index edea48e..f89d865 100755 --- a/Other/smartctl-test-disks.sh +++ b/Other/smartctl-test-disks.sh @@ -21,7 +21,7 @@ done for disk in "${disks[@]}"; do echo "Running $1 test on /dev/$disk" if [ "$1" == "short" ]; then - sudo smartctl -t short /dev/$disk > /dev/null || true + sudo smartctl -t short /dev/$disk > /dev/null || true # ignore any errors running the smart command elif [ "$1" == "long" ]; then sudo smartctl -t long /dev/$disk > /dev/null || true else diff --git a/check_systemd_timer.py b/check_systemd_timer.py index ca1efd5..2a602c8 100755 --- a/check_systemd_timer.py +++ b/check_systemd_timer.py @@ -54,6 +54,9 @@ if __name__ == '__main__': parser.add_argument('-t', '--timer', required=True, help='The name of the timer to check.') args = parser.parse_args() + if not args.timer.endswith('.timer'): + args.timer = args.timer + '.timer' + try: check_timer(args.timer) except Exception as e: