Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/actions/configure-macos-screen-recording/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ runs:

configure_system_tccdb() {
local values=$1
local dbPath="/Library/Application Support/com.apple.TCC/TCC.db"
local sqlQuery="INSERT OR IGNORE INTO access VALUES($values);"
sudo sqlite3 -cmd ".timeout 30000" "$dbPath" "$sqlQuery"
local db_path="/Library/Application Support/com.apple.TCC/TCC.db"
local sql_query="INSERT OR IGNORE INTO access VALUES($values);"
sudo sqlite3 -cmd ".timeout 30000" "$db_path" "$sql_query"
}

configure_user_tccdb() {
local values=$1
local dbPath="$HOME/Library/Application Support/com.apple.TCC/TCC.db"
local sqlQuery="INSERT OR IGNORE INTO access VALUES($values);"
sqlite3 -cmd ".timeout 30000" "$dbPath" "$sqlQuery"
local db_path="$HOME/Library/Application Support/com.apple.TCC/TCC.db"
local sql_query="INSERT OR IGNORE INTO access VALUES($values);"
sqlite3 -cmd ".timeout 30000" "$db_path" "$sql_query"
}

systemValuesArray=(
Expand Down
Loading