@borkena · Post #5895 · 01.03.2026 г., 05:36
የራያ ማንነት አስመላሽ ኮሚቴ ጋር የተደረገ ቃለ ምልልስ https://youtu.be/-0cPFDyO4vE?si=LVIFxNROa-Qg0zt9#raya#Tigray#Ethiopia#politics
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #411 · 9 фев.
reload_flag="" if [[ -n "${DEBUG}" ]]; then reload_flag="--reload" fi if [[ -n "${WORKER_COUNT}" ]]; then workers=${WORKER_COUNT} else workers=2 fi gunicorn --workers ${workers} \ --bind 0.0.0.0:8000 \ ${reload_flag} main.wsgi Писали такие конструкции чтобы проверить наличие флага и сформировать команду правильно? На самом деле можно сделать тоже самое проще. Для этого используются операторы условной подстановки, доступные в оболочках семейства POSIX. :- для установки значений по умолчанию ${WORKER_COUNT:-2} Если переменная не объявлена, то будет дефолтное значение 2. :+ подставляет указанный текст, если переменная не пуста ${DEBUG:+--reload} Если что-то есть в переменной то распечатается текст после символа +, в противном случае - ничего. Удобно для опциональных флагов, как в нашем примере. Итого наш скрипт может выглядеть так: gunicorn --workers ${WORKER_COUNT:-2} \ --bind 0.0.0.0:8000 \ ${DEBUG:+--reload} main.wsgi Есть еще два оператора. := не только подставить дефолтное значение, но и присвоить его переменной, если она пуста # никаких переменных еще нет VAL1=${VAL2:=hello} # теперь доступны обе echo $VAL1 $VAL2 # hello hello :? остановить выполнение с ошибкой, если переменной нет. echo ${MISS:?is required} bash: MISS: is required Код выхода будет 1. #tricks#linux
Пребарај: #raya
@borkena · Post #5895 · 01.03.2026 г., 05:36
የራያ ማንነት አስመላሽ ኮሚቴ ጋር የተደረገ ቃለ ምልልስ https://youtu.be/-0cPFDyO4vE?si=LVIFxNROa-Qg0zt9#raya#Tigray#Ethiopia#politics
@borkena · Post #5671 · 01.01.2026 г., 15:15
Why the World Misunderstands Wolkait and Raya. Read more. https://borkena.com/2026/01/01/ethiopia-why-the-world-misunderstands-wolkait-and-raya/#Ethiopia#Wolkait#Raya#politics
@borkena · Post #5840 · 24.02.2026 г., 11:29
ከወሎ ራያ አማራ ማንነትና ወሰን አስመላሽ ኮሜቴ #Ethiopia#Wello#Raya#ዜና#HouseofFederation
@borkena · Post #5835 · 23.02.2026 г., 17:02
የፌደሬሽን ምክር ቤት በወልቃይት እና ራያ ጉዳይ ላይ ያሳለፈው ውሳኔ እና ያስከተለው ውዝግብ https://youtu.be/6-VMdjC00-s?si=WaToTw2UC25ZoUKO#Ethiopia#News#Wolkait#humera#Raya#Tigray#ዜና
@addisstandardeng · Post #21370 · 11.02.2026 г., 12:55
News: #Amhara security bureau alleges #TPLF, #Eritrea involvement in ongoing conflicts The Amhara Regional State Peace and Security Bureau has alleged that ongoing conflicts in the Amhara region and elsewhere in #Ethiopia are receiving what it described as “leadership and logistical support from #Mekelle and #Asmara,” referring to the Tigray People’s Liberation Front (TPLF) and Eritrean government. In a statement released yesterday, the bureau said the public “must understand the reality” that the fighting is not only against groups it characterized as “extremists” but also involves what it described as internal and external actors. The statement further alleged that a group seeking control over the areas of #Wolkait, #Telemt, and #Raya had assigned what it called a mission to “internal extremist forces” and was mobilizing them to advance that objective. According to the bureau, the strategy aims to create conflicts across various zones and districts to... Read more: https://addisstandard.com/?p=55148