@jswork/ushell-module-base 1.0.60 → 1.0.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/modules/_ins.sh +13 -0
- package/package.json +1 -1
package/modules/_ins.sh
CHANGED
|
@@ -13,3 +13,16 @@ function ins() {
|
|
|
13
13
|
return 1
|
|
14
14
|
fi
|
|
15
15
|
}
|
|
16
|
+
|
|
17
|
+
function binfix() {
|
|
18
|
+
# $1 为目录的 bin 文件
|
|
19
|
+
# 如果没有 $1 参数,则提示使用方法
|
|
20
|
+
if [ $# -eq 0 ]; then
|
|
21
|
+
echo "Usage: binfix <binfile>"
|
|
22
|
+
return 1
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
# sudo xattr -d com.apple.quarantine $1
|
|
26
|
+
cd /usr/local/bin
|
|
27
|
+
sudo xattr -d com.apple.quarantine "$1"
|
|
28
|
+
}
|