mirror of
https://github.com/awalsh128/cache-apt-pkgs-action.git
synced 2025-09-20 10:07:08 +00:00
Make directory as a condition of run.
This commit is contained in:
parent
d9e6c214de
commit
5fd891d19b
5
run.sh
5
run.sh
|
@ -24,11 +24,6 @@ packages="${@:3}"
|
|||
##############################################################################
|
||||
validate_args() {
|
||||
echo -n "* Validating action arguments... ";
|
||||
if [ ! -d "$cache_dir" ]; then
|
||||
echo "aborted."
|
||||
echo "Cache directory '$cache_dir' does not exist." >&2
|
||||
exit 1
|
||||
fi
|
||||
if [ "$packages" == "" ]; then
|
||||
echo "aborted."
|
||||
echo "* Packages argument cannot be empty." >&2
|
||||
|
|
Loading…
Reference in a new issue