Add bash scripts

This commit is contained in:
2025-10-14 21:38:29 +02:00
commit 0d07d33c59
6 changed files with 88 additions and 0 deletions

14
scripts/path.sh Normal file
View File

@@ -0,0 +1,14 @@
#!/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