SHOW:
|
|
- or go back to the newest paste.
1 | - | #!/bin/bash |
1 | + | #!/bin/bash |
2 | - | |
2 | + | |
3 | - | # Ensure the Desktop folder exist |
3 | + | # Ensure the Desktop folder exist |
4 | - | |
4 | + | |
5 | - | if [ -e mydir ]; then |
5 | + | if [ -e mydir ]; then |
6 | - | echo "The folder exists." |
6 | + | echo "The folder exists." |
7 | - | else |
7 | + | else |
8 | - | mkdir mydir |
8 | + | mkdir mydir |
9 | fi |