From 6b96b67db2ad1ee955d7d8b162d5b4574a425304 Mon Sep 17 00:00:00 2001 From: Steve Zabka <79079633+cryinkfly@users.noreply.github.com> Date: Mon, 21 Feb 2022 10:31:41 +0100 Subject: [PATCH] Create profile-locale.sh --- .../stable-branch/locale/profile-locale.sh | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 files/builds/stable-branch/locale/profile-locale.sh diff --git a/files/builds/stable-branch/locale/profile-locale.sh b/files/builds/stable-branch/locale/profile-locale.sh new file mode 100644 index 0000000..6075276 --- /dev/null +++ b/files/builds/stable-branch/locale/profile-locale.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +#################################################################################################### +# Name: Autodesk Fusion 360 - Setup Wizard (Linux) # +# Description: With this file the language will be loaded automatically! # +# Author: Steve Zabka # +# Author URI: https://cryinkfly.com # +# License: MIT # +# Copyright (c) 2020-2022 # +# Time/Date: 10:30/21.02.2022 # +# Version: 0.1 # +#################################################################################################### + +# Path: /$HOME/.config/fusion-360/locale/profile-locale.sh + +############################################################################################################################################################### +# ALL FUNCTIONS ARE ARRANGED HERE: # +############################################################################################################################################################### + +# Read a specific line from a File ($HOME/.config/fusion-360/logs/profile-locale.log) +FILE="$1" +LINE_NO=$2 +i=0 +while read line; do + i=$(( i + 1 )) + test $i = $LINE_NO && echo "$line"; +done <"$FILE"