Fix shellcheck issues

This commit is contained in:
Darko Poljak 2020-04-02 20:18:04 +02:00
parent d034fe9369
commit 890c73f6bd
2 changed files with 4 additions and 4 deletions

View file

@ -24,18 +24,18 @@ case "$type" in
if [ -f "/var/cache/apt/pkgcache.bin" ]; then
echo $(($(date +"%s")-$(stat --format '%Y' /var/cache/apt/pkgcache.bin)))
else
echo -1
echo -- -1
fi
;;
pacman)
if [ -d "/var/lib/pacman/sync" ]; then
echo $(($(date +"%s")-$(stat --format '%Y' /var/lib/pacman/sync)))
else
echo -1
echo -- -1
fi
;;
alpine)
echo -1
echo -- -1
;;
*) echo "Your specified type ($type) is currently not supported." >&2
echo "Please contribute an implementation for it if you can." >&2

View file

@ -38,7 +38,7 @@ destination="/$__object_id"
venvparams="$(cat "$__object/parameter/venvparams")"
pyvenvparam="$__object/parameter/pyvenv"
os=$(cat $__global/explorer/os)
os=$(cat "$__global/explorer/os")
if [ -f "$pyvenvparam" ]
then