From d2e46a09f6f41c46a1e1b512cfbc608b094a7f43 Mon Sep 17 00:00:00 2001 From: Sergey Zhemoitel Date: Thu, 4 Mar 2021 14:27:17 +0300 Subject: [PATCH] Update to 1.1.1j, rewrite spec, move to optdir --- fixsimlink.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 fixsimlink.sh diff --git a/fixsimlink.sh b/fixsimlink.sh new file mode 100755 index 0000000..44b58df --- /dev/null +++ b/fixsimlink.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +LINK="$@" + +FILE=$(ls -l $LINK | awk '{ print $11}') + +[[ ! "$FILE" =~ ".xz" ]] && ln -sf $FILE.xz $LINK + + + + +