mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 18:17:15 +00:00
Create cache directory if not exists.
This commit is contained in:
parent
65966ad776
commit
ac03b4f3ff
8
run.sh
8
run.sh
|
@ -131,7 +131,13 @@ install_and_cache_pkg() {
|
||||||
}
|
}
|
||||||
|
|
||||||
validate_args
|
validate_args
|
||||||
clean_cache
|
|
||||||
|
if [ -d $cache_dir ]; then
|
||||||
|
clean_cache
|
||||||
|
else
|
||||||
|
# Initial run of action; no directory will exist.
|
||||||
|
mkdir -p $cache_dir
|
||||||
|
fi
|
||||||
|
|
||||||
for package in $packages; do
|
for package in $packages; do
|
||||||
echo "* Processing package $package..."
|
echo "* Processing package $package..."
|
||||||
|
|
Loading…
Reference in a new issue