westdc-zf1/tools/dir_output.sh

8 lines
74 B
Bash
Raw Normal View History

#!/bin/bash
if test -d "$1"
then
echo "directory"
else
echo "file"
fi