Lines here only works on English locales:
|
if [[ $OUT =~ "Permission denied" ]]; then |
If the user uses other locales (e.g. Chinese), there's no Permission denied string in the output, instead a 权限不够.
So maybe we should try other methods to check whether move fails by permission denied.
Lines here only works on English locales:
installer/scripts/install.sh.tmpl
Line 170 in 746f746
If the user uses other locales (e.g. Chinese), there's no
Permission deniedstring in the output, instead a权限不够.So maybe we should try other methods to check whether move fails by permission denied.