refactor(templates): replace "! -z" with "-n" for better readability
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
659e2e88f4
commit
0e4bf5ed1a
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if [[ ! -z "$TZ" ]]; then
|
||||
if [[ -n "$TZ" ]]; then
|
||||
if [[ -f /usr/share/zoneinfo/$TZ ]]; then
|
||||
ln -sf /usr/share/zoneinfo/$TZ /etc/localtime
|
||||
echo "$TZ" > /etc/timezone
|
||||
|
||||
Reference in New Issue
Block a user