What does -n do in if [ -n "${TEMP_FILE_LIST}" ] for this shell script?
-n
if [ -n "${TEMP_FILE_LIST}" ]
From help test :
help test
-n STRING STRING True if string is not empty.
-n tests for a string with zero length
checks if the argument "${TEMP_FILE_LIST}" zero length.
"${TEMP_FILE_LIST}"
You can also check
if [ ! -z "${TEMP_FILE_LIST}" ]
Source: https://habr.com/ru/post/898495/More articles:Missing Android proguard code throws a NullPointerException when it really shouldn't be - javaHow do you lay out your binary file format? - c ++The root certificate is automatically deleted from the "Trusted Root Certification Authorities", - x509certificateHow to make code using Value [T: Numeric] more "flexible", like "unpacked" counterparts? - genericsWhat happened to my (attempt) implementation of iterateM? - haskellhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/898496/how-to-copyupdate-resources-frameworks-or-plugins-to-the-mac-os-x-app-bundle-with-qt-creator-or-qmake&usg=ALkJrhgY_buAuxLzaM1RnC7XFJl7V6KEzgEntity Framework - row size exceeding the permissible maximum row size 8060 - sql-serverShould representations specify model data? - backbone.jsWhat is -z if [-z "$ {FILE_LIST}"] - shellProblem using java class inside jruby - javaAll Articles