Merge remote-tracking branch 'qubesos/pr/91'

* qubesos/pr/91:
  bind-dirs.sh: don't fail on empty configuration directory
This commit is contained in:
Marek Marczykowski-Górecki 2018-02-13 04:42:34 +01:00
commit 15301d3922
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1,4 +1,5 @@
#!/bin/bash -e #!/bin/bash -e
shopt -s nullglob dotglob
# vim: set ts=4 sw=4 sts=4 et : # vim: set ts=4 sw=4 sts=4 et :
# #
# bind-dirs # bind-dirs
@ -39,8 +40,6 @@ init() {
[ -n "$rw_dest_dir" ] || rw_dest_dir="/rw/bind-dirs" [ -n "$rw_dest_dir" ] || rw_dest_dir="/rw/bind-dirs"
[ -n "$symlink_level_max" ] || symlink_level_max="10" [ -n "$symlink_level_max" ] || symlink_level_max="10"
mkdir --parents "$rw_dest_dir" mkdir --parents "$rw_dest_dir"
shopt -s nullglob
shopt -s dotglob
} }
legacy() { legacy() {