From: juacq97 Date: Mon, 25 Mar 2019 05:29:37 +0000 (-0700) Subject: Changed the Shell type to POSIX compliant X-Git-Tag: v2.5~144^2~2 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=21e259ecd491f62ab2971c3f7ae533ae82cb86dc;p=nnn.git Changed the Shell type to POSIX compliant --- diff --git a/user-scripts/kdeconnect b/user-scripts/kdeconnect index 5b469529..56d6d069 100755 --- a/user-scripts/kdeconnect +++ b/user-scripts/kdeconnect @@ -1,13 +1,12 @@ -#!/bin/sh +#!/usr/bin/env sh # Description: Send the selected files to your Android device using kdeconnect-cli. You must have installed and configured kdeconnect both on the Android device and on the PC. # -# Shell: Bash +# Shell: POSIX compliant # Author: juacq97 id=$(kdeconnect-cli -a --id-only | awk '{print $1}') -if [ "$(find ~/.nnncp)" ] -then +if [ "$(find ~/.nnncp)" ]; then kdeconnect-cli -d "$id" --share "$(cat ~/.nnncp)" # If you want a system notification, uncomment the next 3 lines. notify-send -a "Kdeconnect" "Sending $(cat ~/.nnncp)"