Skip to content

Commit

Permalink
Merge pull request #52 from GSM-MSG/51-script-signal
Browse files Browse the repository at this point in the history
🔀 :: Script에 signal 감지로 취소 감지
  • Loading branch information
baekteun authored May 10, 2023
2 parents 2beb1b5 + 1f5b2aa commit 5869537
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Scripts/CodeSigning.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/swift
import Foundation

func handleSIGINT(_ signal: Int32) -> Void {
exit(0)
}

signal(SIGINT, handleSIGINT)

func writeContentInFile(path: String, content: String) {
let fileURL = URL(fileURLWithPath: path)
let data = Data(content.utf8)
Expand Down
6 changes: 6 additions & 0 deletions Scripts/GenerateModule.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/swift
import Foundation

func handleSIGINT(_ signal: Int32) -> Void {
exit(0)
}

signal(SIGINT, handleSIGINT)

enum LayerType: String {
case feature = "Feature"
case domain = "Domain"
Expand Down
6 changes: 6 additions & 0 deletions Scripts/InitEnvironment.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/swift
import Foundation

func handleSIGINT(_ signal: Int32) -> Void {
exit(0)
}

signal(SIGINT, handleSIGINT)

let currentPath = "./"

func writeCodeInFile(filePath: String, codes: String) {
Expand Down
6 changes: 6 additions & 0 deletions Scripts/NewDependency.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/usr/bin/swift
import Foundation

func handleSIGINT(_ signal: Int32) -> Void {
exit(0)
}

signal(SIGINT, handleSIGINT)

let currentPath = "./"

func updateFileContent(
Expand Down

0 comments on commit 5869537

Please sign in to comment.