From c5fe91052870cddacee49e86cb6dd232b87033e7 Mon Sep 17 00:00:00 2001 From: 5late Date: Fri, 29 Oct 2021 12:15:10 -0400 Subject: [PATCH] bash --- bin/install | 2 +- bin/repoless-install | 2 +- bin/settings | 2 +- bin/update | 6 +++++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/install b/bin/install index 64157be..fb3365c 100755 --- a/bin/install +++ b/bin/install @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # 0xMF dotfiles aliases file alias_file=$HOME/.bash/aliases.bash # Get location of scripts within filesystem diff --git a/bin/repoless-install b/bin/repoless-install index e0f6e47..7e149fc 100755 --- a/bin/repoless-install +++ b/bin/repoless-install @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # 0xMF dotfiles aliases file alias_file=$HOME/.bash/aliases.bash # Get location of scripts within filesystem diff --git a/bin/settings b/bin/settings index 42611cd..0d90f2c 100755 --- a/bin/settings +++ b/bin/settings @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash echo "Extra settings script" echo alias_file=$HOME/.bashrc diff --git a/bin/update b/bin/update index c9ba6e8..f60e675 100755 --- a/bin/update +++ b/bin/update @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash location="$PWD" parent_dir="$(dirname "$PWD")" current_dir="$(basename "$PWD")" @@ -28,6 +28,8 @@ repo_mode(){ sleep 1 + chmod 755 ./* + cp -v ./* $config_files echo "Copied all files to config location $config_files, you are up-to-date!" @@ -50,6 +52,8 @@ repoless_mode(){ wget raw.githubusercontent.com/5late/Newb-Config/master/scripts/remindme.sh wget raw.githubusercontent.com/5late/Newb-Config/master/scripts/showlast.sh + chmod 755 ./* + mv -v ./* $config_files && cd .. && chmod 755 tmp-nc && rm -r tmp-nc echo "Moved all files to config location $config_files, you are up to date!"