Skip to content

Commit 0c4b339

Browse files
committed
check only if the file exists besides of its type
1 parent 8960738 commit 0c4b339

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/core.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ resource() {
310310
# Checks if a resource exists based on the current namespace.
311311
exists() {
312312
FILE="$(resource "$@")"
313-
if [[ -f "$FILE" ]]; then
313+
if [[ -e "$FILE" ]]; then
314314
return 0
315315
else
316316
return 1

0 commit comments

Comments
 (0)