mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 22:26:56 +00:00
utils: silently ignore records that would violate (#4267)
This commit is contained in:
committed by
GitHub
parent
b9c994fd6c
commit
b8c61a14bc
@@ -196,7 +196,7 @@ configure_system_tccdb () {
|
||||
local values=$1
|
||||
|
||||
local dbPath="/Library/Application Support/com.apple.TCC/TCC.db"
|
||||
local sqlQuery="INSERT INTO access VALUES($values);"
|
||||
local sqlQuery="INSERT OR IGNORE INTO access VALUES($values);"
|
||||
sudo sqlite3 "$dbPath" "$sqlQuery"
|
||||
}
|
||||
|
||||
@@ -204,6 +204,6 @@ configure_user_tccdb () {
|
||||
local values=$1
|
||||
|
||||
local dbPath="$HOME/Library/Application Support/com.apple.TCC/TCC.db"
|
||||
local sqlQuery="INSERT INTO access VALUES($values);"
|
||||
local sqlQuery="INSERT OR IGNORE INTO access VALUES($values);"
|
||||
sqlite3 "$dbPath" "$sqlQuery"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user