OSDN Git Service

[fix] : 084c3d8b08cdc3fca49f234c4e8ef7b7d2b42dae
authorhayao <shun819.mail@gmail.com>
Sun, 20 Sep 2020 15:39:15 +0000 (00:39 +0900)
committerhayao <shun819.mail@gmail.com>
Sun, 20 Sep 2020 15:39:15 +0000 (00:39 +0900)
channels/share/airootfs.any/root/customize_airootfs.sh

index 0adc871..d131190 100755 (executable)
@@ -129,7 +129,7 @@ run_additional_command() {
 
 usermod -s "${usershell}" root
 cp -aT /etc/skel/ /root/
-run_additional_command "xdg-user-dirs-update" "(LC_ALL=C; LANG=C; xdg-user-dirs-update)"
+if [[ -f "$(type -p "xdg-user-dirs-update" 2> /dev/null)" ]]; then LC_ALL=C LANG=Cxdg-user-dirs-update; fi
 echo -e "${password}\n${password}" | passwd root
 
 # Allow sudo group to run sudo