Преглед изворни кода

Prevent wrong debug return

bryan пре 2 година
родитељ
комит
5d9553408e
1 измењених фајлова са 1 додато и 2 уклоњено
  1. 1 2
      installJRMC

+ 1 - 2
installJRMC

@@ -102,7 +102,7 @@ printHelp() {
 }
 
 # Helpers
-debug() { (( DEBUG )) && [[ $# -gt 0 ]] && echo "Debug: $*"; }
+debug() { (( DEBUG )) && echo "Debug: $*"; }
 err() { echo "Error: $*" >&2; }
 askOk() {
     declare response
@@ -293,7 +293,6 @@ init() {
                 err "OS detection failed!"
                 exit 1
             fi
-            ;;
     esac
 
     debug "Using host platform: $ID $VERSION_ID"