toolkit/func/core/pkg_coreutils/16-pathchk.sh

9 lines
236 B
Bash
Raw Permalink Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "coreutils" "Testing pathchk"
pathchk -p "<>" 2> /dev/null
2021-07-06 20:16:01 +00:00
# shellcheck disable=SC2181
2021-07-05 06:50:25 +00:00
[ $? -eq 1 ] && pathchk /var/tmp/fakePathAndFile
2021-07-06 20:16:01 +00:00
# shellcheck disable=SC2181
2021-07-05 06:50:25 +00:00
[ $? -eq 0 ] && pathchk /var/tmp
r_checkExitStatus $?