wiki/运维/Shell脚本/判断变量为空.sh
2026-04-09 01:28:15 +08:00

5 lines
52 B
Bash

#!/bin/bash
if [ ! $1 ]
then
echo "值为空"
fi