westdc-zf1/tools/dir_output.sh

8 lines
74 B
Bash
Executable File

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