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
|
[ ! -f "$file" ] && continue
|
||||||
echo "# mounting $file"
|
echo "# mounting $file"
|
||||||
. ./$file
|
. ./$file
|
||||||
|
[ -d /mnt/$file ] || mkdir /mnt/$file
|
||||||
mount -t cifs //$domain/backup /mnt/$file -o credentials=/etc/credentials/$file
|
mount -t cifs //$domain/backup /mnt/$file -o credentials=/etc/credentials/$file
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Reference in a new issue