jptgdp: Remove debug logging

This commit is contained in:
Salt 2019-06-13 07:42:56 -05:00
parent b4014f8733
commit a84f4e8827

11
jptgdp
View File

@ -11,14 +11,8 @@ _name="$(basename -- "$0")"
_tmpdir="${XDG_CACHE_HOME:-$HOME/.cache}/$_name"
_tmpfile="$_tmpdir/tmpfile"
_playlistdir="$_tmpdir"/playlist
_debug=1
# Helper functions
debug() {
[ -z "$1" ] && return 1
[ -z "$_debug" ] && return 0
log "debug: $1"
}
log() {
[ -z "$1" ] && return 1
printf "%s: %s\\n" \
@ -144,11 +138,6 @@ main() {
;;
esac
done
debug "Temporary directory is \"$_tmpdir\""
debug "Playlist directory is \"$_playlistdir\""
debug "Temporary file is \"$_tmpfile\""
[ -n "$_optshuffle" ] && debug "Shuffling playlist"
if [ -n "$_optrofi" ]; then rofimenu; exit $?; fi
if [ -n "$_optfile" ]; then playlist "$_optfile"; exit $?; fi
error "Nothing to do" 0