GIP 2.95 reports as v2.83 in Linux Mint!!!

artisticforge . artisticforge at gmail.com
Sat Jul 9 11:41:44 PDT 2016


hello

the context of my reply was his home directory.

the below would be overkill to create a soft link but is technically correct.
I could add the lines to download the tar.gz file and untar it in the
$HOME directory if not all ready there.

#!/bin/bash

if [ ! "$HOME" ]
then
    HOME=`grep -e \"\`id -ru\`\" /etc/passwd | awk -F\: '{print $6}'`;
fi

echo "$HOME";

if [ ! -d "$HOME/bin" ]
then
    echo "mkdir \"$HOME/bin\"";
    mkdir "$HOME/bin"
fi

if [ -f "$HOME/get_iplayer-2.95/get_iplayer" -a ! -L "$HOME/bin/get_iplayer" ]
then
    echo "ln -s \"$HOME/get_iplayer-2.95/get_iplayer\"
\"$HOME/bin/get_iplayer\";";
    ln -s "$HOME/get_iplayer-2.95/get_iplayer" "$HOME/bin/get_iplayer";
elif [ ! -f "$HOME/get_iplayer-2.95/get_iplayer" ]
then
    echo "$HOME/get_iplayer-2.95/get_iplayer does not exist.";
else
    echo "Soft link $HOME/bin/get_iplayer all ready exists.";
fi

exit;

On Sat, Jul 9, 2016 at 6:44 AM, Roger Bell_West <roger at firedrake.org> wrote:
> On Sat, Jul 09, 2016 at 06:28:17AM -0500, artisticforge . wrote:
>>ln -s ./get_iplayer-2.95/get_iplayer ~/bin/get_iplayer
>
> When creating symlinks it's better to give an absolute path as the
> first file argument, just to be on the safe side.
>
> ln -s ~/get_iplayer-2.95/get_iplayer ~/bin/get_iplayer
>
> R
>
> _______________________________________________
> get_iplayer mailing list
> get_iplayer at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/get_iplayer



-- 
terry l. ridder ><>



More information about the get_iplayer mailing list