diff options
Diffstat (limited to 'functions/cache.sh')
-rwxr-xr-x | functions/cache.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/functions/cache.sh b/functions/cache.sh index 94d6bc2bc..d83b7e1b1 100755 --- a/functions/cache.sh +++ b/functions/cache.sh @@ -32,13 +32,10 @@ Save_cache () # Cleaning current cache Chroot "apt-get autoclean" - if ls chroot/var/cache/apt/archives/*.deb &> /dev/null + if ls chroot/var/cache/apt/archives/*.deb > /dev/null 2>&1 then # Creating cache directory - if [ ! -d "${DIRECTORY}" ] - then - mkdir -p "${DIRECTORY}" - fi + mkdir -p "${DIRECTORY}" # Saving new cache mv -f chroot/var/cache/apt/archives/*.deb "${DIRECTORY}" |