2024-05-06 11:40:17 +03:00

13 lines
206 B
Bash
Executable File

#!/bin/bash
folder_path="/home/tylen/Saturn/tylen"
if [ -d "$folder_path" ]; then
available_space=$(df -h --output=avail "$folder_path" | tail -n 1)
echo "$available_space"
else
echo "-"
fi