Skip to content

Commit

Permalink
Always create virtual directory
Browse files Browse the repository at this point in the history
  • Loading branch information
HanabishiRecca committed Oct 26, 2023
1 parent e729944 commit da98242
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions caches-manager
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ make_mount() {
# $1: virtual directory to link
# $2: target directory
make_link() {
mkdir -p "$1"

if [ -L "$2" ]; then
[ "$(readlink "$2")" == "$1" ] && return 0
else
Expand All @@ -66,6 +64,7 @@ create_cache() {
echo -n "Mounting '${dir}'... "
else
echo -n "Linking '${dir}'... "
mkdir -p "$1"
fi

if [ ! -d "${parent}" ]; then
Expand Down

0 comments on commit da98242

Please sign in to comment.