File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1169,6 +1169,11 @@ lookup_script_data() {
1169
1169
os_version=$( sw_vers -productVersion) # 11.1
1170
1170
install_package=" brew install"
1171
1171
;;
1172
+ OpenBSD)
1173
+ os_name=$( uname -s)
1174
+ os_version=$( uname -r)
1175
+ install_package=" pkg_add -U"
1176
+ ;;
1172
1177
Linux | GNU* )
1173
1178
if [[ $( command -v lsb_release) ]]; then
1174
1179
# 'normal' Linux distributions
@@ -1199,7 +1204,8 @@ lookup_script_data() {
1199
1204
script_modified=" ??"
1200
1205
[[ " $os_kernel " == " Linux" ]] && script_modified=$( stat -c %y " $script_install_path " 2> /dev/null | cut -c1-16) # generic linux
1201
1206
[[ " $os_kernel " == " Darwin" ]] && script_modified=$( stat -f " %Sm" " $script_install_path " 2> /dev/null) # for MacOS
1202
-
1207
+ [[ " $os_kernel " == " OpenBSD" ]] && script_modified=$( stat -f " %Sm" " $script_install_path " 2> /dev/null) # for OpenBSD
1208
+
1203
1209
debug " $info_icon Last modif : $script_modified "
1204
1210
debug " $info_icon Script ID : $script_lines lines / md5: $script_hash "
1205
1211
debug " $info_icon Creation : $script_created "
You can’t perform that action at this time.
0 commit comments