mirror of
https://github.com/dwinkler1/np.git
synced 2026-02-19 14:30:59 -05:00
only create dirs that do not exist
This commit is contained in:
parent
a0d9b64a38
commit
0306d14d0b
1 changed files with 4 additions and 2 deletions
|
|
@ -133,8 +133,10 @@
|
|||
)
|
||||
|
||||
for dir in "''${directories[@]}"; do
|
||||
mkdir -p "$dir"
|
||||
echo "✓ Created $dir/"
|
||||
if [[ ! -d "$dir" ]]; then
|
||||
mkdir -p "$dir"
|
||||
echo "✓ Created $dir/"
|
||||
fi
|
||||
done
|
||||
|
||||
# Create essential files
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue