kiss-outdated: use PWD when no args are given (#108)

Co-authored-by: wael <40663@proton.me>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/108
Reviewed-by: phoebos <phoebos@noreply.codeberg.org>
Co-authored-by: sewn <sewn@disroot.org>
Co-committed-by: sewn <sewn@disroot.org>
This commit is contained in:
sewn 2023-01-20 07:52:57 +00:00 committed by Pratham
parent b04a707130
commit 6a41ce4f7e

View File

@ -382,8 +382,7 @@ get_outdated() {
main() { main() {
set -e set -e
[ "$1" ] || [ "$1" ] || set -- "$PWD"
die 'usage: kiss [ou]tdated /path/to/repo...'
mkdir -p "${tmp:=${XDG_CACHE_HOME:-"$HOME/.cache"}/kiss/repology}" mkdir -p "${tmp:=${XDG_CACHE_HOME:-"$HOME/.cache"}/kiss/repology}"