mirror of https://github.com/fengyuhetao/shell.git
12 lines
169 B
Bash
12 lines
169 B
Bash
|
#!/bin/bash
|
||
|
# look before you leap
|
||
|
|
||
|
if [ -d $HOME ]
|
||
|
then
|
||
|
echo "Your home directory exists"
|
||
|
cd $HOME
|
||
|
ls -a
|
||
|
else
|
||
|
echo "There is a problem with your HOME direcotry"
|
||
|
fi
|