From 8e0afd409f7cea76f8139da20f59f91f75d51bc3 Mon Sep 17 00:00:00 2001 From: CrimsonTome Date: Thu, 20 Oct 2022 23:02:47 +0100 Subject: [PATCH] chore: change to env bash and comment out of way of cloning repos --- migrate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/migrate.sh b/migrate.sh index 46440db..220e3ab 100755 --- a/migrate.sh +++ b/migrate.sh @@ -1,9 +1,10 @@ -#!/usr/bin/bash +#!/usr/bin/env bash #program should retrieve a list of installed packages and cloned repos, add them to a list and allow the syncing of them between installs, will be for arch so pacman package manager to install packages. Of course git will be used for the syncing of repos #thanks to SBRL for this handy git repo url finder -find /home/ctome/git/ -mount -type d -name '.git' -print0 | xargs -0 -I {} bash -c 'dirgit="{}"; dir="$(dirname "${dirgit}")"; cd "${dir}" && echo -e "$(git remote -v | tr " " "\t" | cut -f 2 | head -n1)";' |grep .com > repos.txt && mkdir -p repos; +#find /home/ctome/git/ -mount -type d -name '.git' -print0 | xargs -0 -I {} bash -c 'dirgit="{}"; dir="$(dirname "${dirgit}")"; cd "${dir}" && echo -e "$(git remote -v | tr " " "\t" | cut -f 2 | head -n1)";' |grep .com > repos.txt && mkdir -p repos; # cd repos && cat ../repos.txt |xargs -0 git clone; +