Skip to content

Commit

Permalink
Update files_link to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Sep 19, 2024
1 parent c4ec463 commit b306dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/files_link
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -eo pipefail

if [[ -n "${DEBUG}" ]]; then
set -x
Expand All @@ -14,7 +14,7 @@ if [[ -n "${app_public_dir}" ]]; then

if [[ -d "${app_public_dir}" ]]; then
if [[ ! -L "${app_public_dir}" ]]; then
if [[ "$(ls -A "${app_public_dir}")" ]]; then
if [[ "$(ls -A "${app_public_dir}" | grep -v '.gitignore')" ]]; then
echo "Error: failed to symlink public storage directory to a persistent volume"
echo "Directory ${app_public_dir} either must be empty or cannot exist"
echo "(use files import to migrate existing public files)"
Expand Down

0 comments on commit b306dab

Please sign in to comment.