Skip to content
Browse files

Fixed bug in os type and printed something in os open

  • Loading branch information...
1 parent 7e5e96a commit ff80ced339e98ce08c5df2ca2c31bfc1b3872be6 @longnguyen11288 longnguyen11288 committed
Showing with 7 additions and 1 deletion.
  1. +6 −0 bin/os/open
  2. +1 −1 bin/os/type
6 bin/os/open
@@ -4,6 +4,12 @@ set -v # Turn on verbose logging, so that the following will present a tutorial.
# os module api is loaded with the line 'api/os' in the shell/includes.
+# create file
file create /tmp/temp_file
+# write to file
+file write string "Hello world!" to /tmp/temp_file
+# open the file
os open /tmp/temp_file
2 bin/os/type
@@ -11,7 +11,7 @@ os type
if os type is linux
log "OS type is linux"
-elif os type is BSD
+elif os type is bsd
log "OS type is BSD"
elif os type is darwin

0 comments on commit ff80ced

Please sign in to comment.
Something went wrong with that request. Please try again.