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