X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Fgames%2Fsave_f76_pics.sh;h=24e8a789b4ef4827030c5f9adf7d897f9d955efb;hb=5ca960abd03fdbb99ab0a95f23d1512acc2e87bd;hp=3f5f3296e41f80bc3aca23dbe7c3919c11e7568b;hpb=911c9ea38f0a6d5ac43091f717e6ffed85f24c8a;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 3f5f3296..24e8a789 --- a/scripts/customize/fred/scripts/games/save_f76_pics.sh +++ b/scripts/customize/fred/scripts/games/save_f76_pics.sh @@ -1,5 +1,34 @@ +#!/bin/bash + +# copies the fallout 76 screenshots and images into our walruse metaverse hierarchy. source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" -netcp ~/linx/wind_goods/My\ Games/Fallout\ 76/Photos/8f99c06443f04f6f8270604369bb78eb/*[0-9].png ~/data/f76_pc_pics/ +if [[ "$(hostname)" =~ clemems* ]]; then + character=chronical_pc +fi +if [[ "$(hostname)" =~ orpheus* ]]; then + character=spoonburg_pc +fi +if [ -z "$character" ]; then + echo Could not determine the proper character name to store the fallout 76 + echo images under. Can you add a hostname to this script? + echo " => $0" + exit 1 +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"/ +