mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
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
|