jptgdp: Remove debug logging
This commit is contained in:
		
							
								
								
									
										11
									
								
								jptgdp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								jptgdp
									
									
									
									
									
								
							| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user