From 9b357d7d82ece37c7192e8a59c2673eb2b6ff4d9 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sun, 7 Mar 2021 01:14:36 +0100 Subject: [PATCH] image support for nc-share.sh --- .local/share/scripts/nc-share.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.local/share/scripts/nc-share.sh b/.local/share/scripts/nc-share.sh index 53258f7..b907cef 100755 --- a/.local/share/scripts/nc-share.sh +++ b/.local/share/scripts/nc-share.sh @@ -16,10 +16,11 @@ fi FILENAME=$(basename $FILE_PATH) - if file -i -b "$FILENAME" | grep "text" &> /dev/null; then $SCRIPTPATH/nc-share-text.sh "$FILENAME" -else +elif file -i -b "$FILENAME" | grep "image" &> /dev/null; then + $SCRIPTPATH/nc-share-file.sh "$FILENAME" | awk '{print $1"/preview"}' +else $SCRIPTPATH/nc-share-file.sh "$FILENAME" fi