From 99ecfc0734cff50bb45f606ccf1d0527f7aadf23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=CC=81=20Moreira?= Date: Thu, 5 Sep 2024 21:30:35 +0100 Subject: [PATCH] fix: else if > elif --- misc/fs.func | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/misc/fs.func b/misc/fs.func index 5a04c878..3035d3bf 100644 --- a/misc/fs.func +++ b/misc/fs.func @@ -10,16 +10,16 @@ if [ "$FS_LOCAL_ROOT" != "" ]; then FS_SOURCE=local; fi; # This function prints a file from the repositories root. When running PHS locally, it uses the file system, otherwise it points to the latest main branch. fs_cat() { if [ "$FS_SOURCE" == "local" ]; then - FILE_PATH="${FS_LOCAL_ROOT}/$1" + FILE_PATH="${FS_LOCAL_ROOT}/$1"; if [ -f "$FILE_PATH" ]; then cat "$FILE_PATH"; fi; - else if [ "$FS_SOURCE" == "remote" ]; then + elif [ "$FS_SOURCE" == "remote" ]; then curl -s "https://raw.githubusercontent.com/tteck/Proxmox/${FS_REMOTE_BRANCH}/$1"; fi; - msg_error "Something went wrong while attempting to cat file: $1." - echo -e "\nExiting..." - sleep 2 - exit -} + msg_error "Something went wrong while attempting to cat file: $1."; + echo -e "\nExiting..."; + sleep 2; + exit; +};