Skip to content

Commit 68f81a7

Browse files
committed
test
1 parent 45af7e9 commit 68f81a7

2 files changed

Lines changed: 70 additions & 54 deletions

File tree

.github/workflows/test_macos.yml

Lines changed: 53 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ on:
55
branches:
66
- main
77
paths-ignore:
8-
- 'docs/**'
8+
- "docs/**"
99
pull_request:
1010
schedule:
11-
- cron: '0 2 * * *'
11+
- cron: "0 2 * * *"
1212

1313
jobs:
1414
macOS:
@@ -17,59 +17,58 @@ jobs:
1717
fail-fast: false
1818
matrix:
1919
features: [
20-
"ansible",
21-
"clean",
22-
"cli-network",
23-
"core",
24-
"git",
25-
"javascript",
26-
# "macos-alfred", # Script error to be fixed
27-
# "macos-app-dev", # Depends on `git`
28-
# "macos-app-private", # Depends on `git`
29-
# "macos-app-work", # Depends on `git`
30-
"macos-appcleaner",
31-
"macos-brew",
32-
"macos-c-cpp",
33-
"macos-clean",
34-
# "macos-cleanshot", # Script error to be fixed
35-
"macos-cli-network",
36-
"macos-cli-useful",
37-
"macos-core",
38-
"macos-docker",
39-
"macos-dropbox",
40-
"macos-duti",
41-
"macos-file-handler",
42-
"macos-finder",
43-
"macos-font",
44-
"macos-git",
45-
"macos-hammerspoon",
46-
"macos-icon",
47-
"macos-iterm",
48-
"macos-javascript",
49-
"macos-markedit",
50-
"macos-micro",
51-
"macos-nano",
52-
# "macos-one-password", # mas can't run without login on GitHub Actions
53-
# "macos-perl", # Script error to be fixed
54-
"macos-popclip",
55-
"macos-quicklook",
56-
"macos-screensaver",
57-
"macos-service-workflow",
58-
# "macos-settings", # Script error to be fixed
59-
"macos-shellcheck",
60-
"macos-stow",
61-
"macos-sublime",
62-
"macos-terminal",
20+
# "ansible",
21+
# "clean",
22+
# "cli-network",
23+
# "core",
24+
# "git",
25+
# "javascript",
26+
# # "macos-alfred", # Script error to be fixed
27+
# # "macos-app-dev", # Depends on `git`
28+
# # "macos-app-private", # Depends on `git`
29+
# # "macos-app-work", # Depends on `git`
30+
# "macos-appcleaner",
31+
# "macos-brew",
32+
# "macos-c-cpp",
33+
# "macos-clean",
34+
# # "macos-cleanshot", # Script error to be fixed
35+
# "macos-cli-network",
36+
# "macos-cli-useful",
37+
# "macos-core",
38+
# "macos-docker",
39+
# "macos-duti",
40+
# "macos-file-handler",
41+
# "macos-finder",
42+
# "macos-font",
43+
# "macos-git",
44+
# "macos-hammerspoon",
45+
# "macos-icon",
46+
# "macos-iterm",
47+
# "macos-javascript",
48+
# "macos-markedit",
49+
# "macos-micro",
50+
# "macos-nano",
51+
# # "macos-one-password", # mas can't run without login on GitHub Actions
52+
# # "macos-perl", # Script error to be fixed
53+
# "macos-popclip",
54+
# "macos-quicklook",
55+
# "macos-screensaver",
56+
# "macos-service-workflow",
57+
# # "macos-settings", # Script error to be fixed
58+
# "macos-shellcheck",
59+
# "macos-stow",
60+
# "macos-sublime",
61+
# "macos-terminal",
6362
"macos-touch-id-sudo",
64-
"macos-tower",
65-
"macos-vscode",
66-
# "macos-xcode", # mas can't run without login on GitHub Actions
67-
"macos-zsh",
68-
"micro",
69-
"nano",
70-
"python",
71-
"stow",
72-
"zsh",
63+
# "macos-tower",
64+
# "macos-vscode",
65+
# # "macos-xcode", # mas can't run without login on GitHub Actions
66+
# "macos-zsh",
67+
# "micro",
68+
# "nano",
69+
# "python",
70+
# "stow",
71+
# "zsh",
7372
]
7473
steps:
7574
- name: 🛒 Checkout

pkg/macos-touch-id-sudo/macos-touch-id-sudo.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
#!/bin/bash
22
set -euo pipefail
33

4+
# Debug: Check bioutil command first
5+
echo "Checking bioutil status..."
6+
bioutil -rs || echo "bioutil command failed with exit code $?"
7+
48
TouchIDStatus=$(bioutil -rs | grep unlock | awk '{print $4}')
9+
echo "TouchID Status: $TouchIDStatus"
10+
511
if [[ "${TouchIDStatus}" != "1" ]]; then
612
echo "Touch ID unavailable, skip setting."
713
exit 0
@@ -15,3 +21,14 @@ auth sufficient pam_tid.so' /etc/pam.d/sudo
1521
else
1622
echo "Touch ID authentication already configured for sudo."
1723
fi
24+
25+
26+
# #!/usr/bin/env bash
27+
# set -e
28+
29+
# TouchIDStatus=$(bioutil -rs | grep unlock | awk '{print $4}')
30+
# if [[ "${TouchIDStatus}" = "1" ]]; then
31+
# sudo sed -i '2 i auth sufficient pam_tid.so' /etc/pam.d/sudo
32+
# else
33+
# echo "Touch ID unavailable, skip setting."
34+
# fi

0 commit comments

Comments
 (0)