X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Fgames%2Fsave_f76_pics.sh;h=cb3323dda7c674279937d18d224ce76c0dab28bf;hb=8048673adc654e86f2b3fc1ef11621f336ea0562;hp=74685dea1797451ee0f5503ff70e057f8a73de0d;hpb=29ddbc678276866431ee40a0453f81d9d1fde702;p=feisty_meow.git diff --git a/scripts/customize/fred/scripts/games/save_f76_pics.sh b/scripts/customize/fred/scripts/games/save_f76_pics.sh old mode 100755 new mode 100644 index 74685dea..cb3323dd --- a/scripts/customize/fred/scripts/games/save_f76_pics.sh +++ b/scripts/customize/fred/scripts/games/save_f76_pics.sh @@ -1,5 +1,26 @@ +#!/bin/bash source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" -netcp ~/linx/wind_goods/My\ Games/Fallout\ 76/Photos/8f99c06443f04f6f8270604369bb78eb/*[0-9].png ~/f76_pc_pics/ +if [[ "$(hostname)" =~ clemems* ]]; then + character=clemens_pc +fi +if [[ "$(hostname)" =~ orpheus* ]]; then + character=spoonburg_pc +fi + +src_dir="~/linx/wind_goods/My\ Games/Fallout\ 76/Photos/8f99c06443f04f6f8270604369bb78eb" +dest_dir="/z/walrus/media/pictures/metaverse/fallout_76/${character}" + +if [ ! -d "$src_dir" ]; then + echo "Could not find the source directory: $src_dir" + exit 1 +fi +if [ ! -d "$dest_dir" ]; then + echo "Could not find the destination directory: $dest_dir" + exit 1 +fi + +netcp "$src_dir"/*[0-9].png "$dest_dir"/ +