summaryrefslogtreecommitdiff
path: root/snippets/sh-mode/if_file_exists
diff options
context:
space:
mode:
Diffstat (limited to 'snippets/sh-mode/if_file_exists')
-rw-r--r--snippets/sh-mode/if_file_exists5
1 files changed, 5 insertions, 0 deletions
diff --git a/snippets/sh-mode/if_file_exists b/snippets/sh-mode/if_file_exists
new file mode 100644
index 00000000..38c6e90f
--- /dev/null
+++ b/snippets/sh-mode/if_file_exists
@@ -0,0 +1,5 @@
+# -*- mode: snippet -*-
+# name: if_file_exists
+# key: <if_file
+# --
+ [ -f $1 ] && $0 \ No newline at end of file