From d4b94d4b2152daac73f40bb1dd291f47278a99c0 Mon Sep 17 00:00:00 2001 From: Toshit Chawda Date: Mon, 7 Oct 2024 19:09:32 -0700 Subject: [PATCH] allow switching chrome dir --- get_original_data.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/get_original_data.sh b/get_original_data.sh index f7495ae..3f2bc85 100755 --- a/get_original_data.sh +++ b/get_original_data.sh @@ -1,13 +1,15 @@ #!/bin/bash echo This script may be removed or disabled later with discretion of google. -if [ ! -d "$HOME"/.config/google-chrome/PKIMetadata ] +echo "using chrome ${CHROME:="google-chrome"}" + +if [ ! -d "$HOME/.config/$CHROME/PKIMetadata" ] then - google-chrome chrome://components &> /dev/null & + "$CHROME" chrome://components &> /dev/null & exit 0 fi # Search directory for versions -HIGHESTVERSIONAPPARENTLY=$(find "$HOME"/.config/google-chrome/PKIMetadata/ -maxdepth 1 -mindepth 1 -type d| head -n 1) +HIGHESTVERSIONAPPARENTLY=$(find "$HOME/.config/$CHROME/PKIMetadata/" -maxdepth 1 -mindepth 1 -type d| head -n 1) #Let the user know what version we are on echo "$HIGHESTVERSIONAPPARENTLY" @@ -22,4 +24,4 @@ cp -rvf "$HIGHESTVERSIONAPPARENTLY"/. original/PKIMetadata/2000 rm -rvf original/PKIMetadata/2000/_metadata rm -rvf original/PKIMetadata/2000/manifest.fingerprint -#end of script \ No newline at end of file +#end of script