Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
GET_CACHEDIR létrehozása, ha nem létezik
Browse files Browse the repository at this point in the history
  • Loading branch information
rezso committed Jun 1, 2018
1 parent 4057c1c commit 4285be1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/get
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ function _get() {
c=$((a&~m))
chmod 0$(printf %03o $c) -- "$filename"

if [ ! -d "$GET_CACHEDIR" ]; then
mkdir -p "$GET_CACHEDIR"
fi

if [ -n "$cachedir" -a -w "$GET_CACHEDIR" ]; then
mkdir -p "$cachedir" && cp -af "$name" "$cachedir"/
fi
Expand Down

0 comments on commit 4285be1

Please sign in to comment.