10 lines
244 B
Bash
10 lines
244 B
Bash
#! /bin/bash
|
|
#判断目录是否存在,不存在创建
|
|
shmdir=~/shm
|
|
if [ ! -d $shmdir ]
|
|
then
|
|
mkdir -p ~/shm
|
|
echo -e "\033[32m this is $shmdir success ! \033[0m"
|
|
else
|
|
echo -e "\033[032m directory already exists \033[0m"
|
|
fi |