Browse Source

fix su command error

Casey DeLorme 1 tuần trước cách đây
mục cha
commit
d0b37a31c0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      arch.sh

+ 1 - 1
arch.sh

@@ -201,7 +201,7 @@ if [ ! -f "/etc/systemd/system/transmission.service.d/local.conf" ]; then
 	su $username -c 'cd && tmp=$(mktemp) && jq ".[\"download-dir\"] = \"${HOME}/transmission/done\"" $HOME/.config/transmission-daemon/settings.json | jq ".[\"incomplete-dir\"] = \"${HOME}/transmission/incomplete\"" | jq ".[\"watch-dir\"] = \"$(xdg-user-dir DOWNLOAD)\"" > $tmp && mv $tmp $HOME/.config/transmission-daemon/settings.json'
 fi
 
-su -u $username -c "mkdir -p ~/code/aur.archlinux.org"
+su $username -c "mkdir -p ~/code/aur.archlinux.org"
 export user_home="$(getent passwd $username | cut -d: -f6)/"
 
 # install qview