summaryrefslogtreecommitdiffstats
path: root/src/vfs/fish/helpers/hardlink
diff options
context:
space:
mode:
Diffstat (limited to 'src/vfs/fish/helpers/hardlink')
-rw-r--r--src/vfs/fish/helpers/hardlink8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vfs/fish/helpers/hardlink b/src/vfs/fish/helpers/hardlink
new file mode 100644
index 0000000..4f36b3f
--- /dev/null
+++ b/src/vfs/fish/helpers/hardlink
@@ -0,0 +1,8 @@
+#LINK $FISH_FILEFROM $FISH_FILETO
+FILEFROM="/${FISH_FILEFROM}"
+FILETO="/${FISH_FILETO}"
+if ln "${FILEFROM}" "${FILETO}" 2>/dev/null; then
+ echo "### 000"
+else
+ echo "### 500"
+fi