Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed bug in os type and printed something in os open

  • Loading branch information...
commit ff80ced339e98ce08c5df2ca2c31bfc1b3872be6 1 parent 7e5e96a
@longnguyen11288 longnguyen11288 authored
Showing with 7 additions and 1 deletion.
  1. +6 −0 bin/os/open
  2. +1 −1  bin/os/type
View
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
+
View
2  bin/os/type
@@ -11,7 +11,7 @@ os type
if os type is linux
then
log "OS type is linux"
-elif os type is BSD
+elif os type is bsd
then
log "OS type is BSD"
elif os type is darwin
Please sign in to comment.
Something went wrong with that request. Please try again.