Files
next-git/scripts/path.sh
2025-10-14 21:38:29 +02:00

14 lines
200 B
Bash

#!/bin/bash
set -e
read -rp "Path: " input_path
if [[ -f "$input_path" ]]; then
echo "It's a file."
elif [[ -d "$input_path" ]]; then
echo "It's a directory."
else
echo "It's neither."
fi