F #165: Replace realpath with readlink -f

pull/188/head
Vlastimil Holer 5 years ago
parent 7829331edc
commit 32ddd28488
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -22,7 +22,7 @@ fi
if ! timedatectl set-timezone "${TIMEZONE}" 2>/dev/null; then if ! timedatectl set-timezone "${TIMEZONE}" 2>/dev/null; then
_tz_base='/usr/share/zoneinfo/' _tz_base='/usr/share/zoneinfo/'
_tz_dest=$(realpath "${_tz_base}${TIMEZONE}" 2>/dev/null) _tz_dest=$(readlink -f "${_tz_base}${TIMEZONE}" 2>/dev/null)
# if timezone file path is resolvable file and # if timezone file path is resolvable file and
# real path is inside the timezone directory # real path is inside the timezone directory

Loading…
Cancel
Save