jptgdp: Remove debug logging
This commit is contained in:
parent
b4014f8733
commit
a84f4e8827
11
jptgdp
11
jptgdp
@ -11,14 +11,8 @@ _name="$(basename -- "$0")"
|
|||||||
_tmpdir="${XDG_CACHE_HOME:-$HOME/.cache}/$_name"
|
_tmpdir="${XDG_CACHE_HOME:-$HOME/.cache}/$_name"
|
||||||
_tmpfile="$_tmpdir/tmpfile"
|
_tmpfile="$_tmpdir/tmpfile"
|
||||||
_playlistdir="$_tmpdir"/playlist
|
_playlistdir="$_tmpdir"/playlist
|
||||||
_debug=1
|
|
||||||
|
|
||||||
# Helper functions
|
# Helper functions
|
||||||
debug() {
|
|
||||||
[ -z "$1" ] && return 1
|
|
||||||
[ -z "$_debug" ] && return 0
|
|
||||||
log "debug: $1"
|
|
||||||
}
|
|
||||||
log() {
|
log() {
|
||||||
[ -z "$1" ] && return 1
|
[ -z "$1" ] && return 1
|
||||||
printf "%s: %s\\n" \
|
printf "%s: %s\\n" \
|
||||||
@ -144,11 +138,6 @@ main() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
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 "$_optrofi" ]; then rofimenu; exit $?; fi
|
||||||
if [ -n "$_optfile" ]; then playlist "$_optfile"; exit $?; fi
|
if [ -n "$_optfile" ]; then playlist "$_optfile"; exit $?; fi
|
||||||
error "Nothing to do" 0
|
error "Nothing to do" 0
|
||||||
|
Loading…
Reference in New Issue
Block a user