fix no dir err
This commit is contained in:
parent
bc228723d7
commit
73fe776bfc
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ for file in *; do
|
|||
[ ! -f "$file" ] && continue
|
||||
echo "# mounting $file"
|
||||
. ./$file
|
||||
[ -d /mnt/$file ] || mkdir /mnt/$file
|
||||
mount -t cifs //$domain/backup /mnt/$file -o credentials=/etc/credentials/$file
|
||||
done
|
||||
|
||||
|
|
Reference in a new issue