From f686ce660856ca658837a2de473ef949c1d9d1a4 Mon Sep 17 00:00:00 2001 From: Maciek Makowski Date: Fri, 19 Aug 2022 15:18:18 +0200 Subject: [PATCH] use shebang and shell syntax compatible with Ubuntu 22.04 --- install-reslang | 4 +--- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/install-reslang b/install-reslang index b610c4db..5af2f47f 100755 --- a/install-reslang +++ b/install-reslang @@ -8,7 +8,5 @@ cd \"$BASEDIR\" ./src/main.ts \"\$@\" " > run-reslang chmod +x run-reslang -yarn unlink >& /dev/null +yarn unlink >/dev/null 2>&1 yarn link - - diff --git a/src/main.ts b/src/main.ts index 16779e87..b5609f7f 100755 --- a/src/main.ts +++ b/src/main.ts @@ -1,4 +1,4 @@ -#!/usr/bin/env npx ts-node +#!/usr/bin/env -S npx ts-node import clip from "clipboardy" import yaml from "js-yaml"