Closed Andre87osx closed 2 years ago
https://github.com/Andre87osx/AstroPi-system/blob/a31804502bba6888a595477fef9843c35a98d53d/Script/.Update.sh#L16
try use grep $USER /etc/passwd if [ $? -ne 0 ] ; then echo "not a local account" ; fi cut USER and HOME path
grep $USER /etc/passwd
if [ $? -ne 0 ] ; then echo "not a local account" ; fi
https://github.com/Andre87osx/AstroPi-system/blob/a31804502bba6888a595477fef9843c35a98d53d/Script/.Update.sh#L16