Pkg // Update postflight script using new syntax.

This commit is contained in:
ShikiSuen 2022-04-11 23:13:35 +08:00
parent 32ae6b1e1f
commit 561263b4d2
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
TARGET='vChewing' TARGET='vChewing'
login_user=`/usr/bin/stat -f%Su /dev/console` login_user=$(/usr/bin/stat -f%Su /dev/console)
# First, copy the wrongfully installed contents to the right location: # First, copy the wrongfully installed contents to the right location:
cp -r /Library/Input\ Methods/"${TARGET}".app /Users/"${login_user}"/Library/Input\ Methods/ || true cp -r /Library/Input\ Methods/"${TARGET}".app /Users/"${login_user}"/Library/Input\ Methods/ || true