X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcustomize%2Ffred%2Fscripts%2Fgames%2Fsave_f76_pics.sh;h=e7bdc5b9a9c831146c7416ba6236684075ba416b;hb=2e34b725fd2553955fdfd41e400d2bf12c76ca03;hp=854274a5e3369a51f7aae800fb02ee8002e2777a;hpb=99c9b758404cf7e65f4c7a5cfc6400f73467db40;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 854274a5..e7bdc5b9 --- a/scripts/customize/fred/scripts/games/save_f76_pics.sh +++ b/scripts/customize/fred/scripts/games/save_f76_pics.sh @@ -1,5 +1,37 @@ +#!/bin/bash + +# copies the fallout 76 screenshots and images into our walruse metaverse hierarchy. source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" -netcp ~/wind_goods/My\ Games/Fallout\ 76/Photos/8f99c06443f04f6f8270604369bb78eb/*[0-9].png ~/f76_pc_pics/ +if [[ "$(hostname)" =~ clemens* ]]; then + character="chronical_pc" + identity="8836c852c8a647ba8ca45808a73c3fbb" +elif [[ "$(hostname)" =~ orpheus* ]]; then + character="spoonburg_pc" + identity="8f99c06443f04f6f8270604369bb78eb" +else + 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="$HOME/linx/wind_goods/My Games/Fallout 76/Photos/${identity}" +dest_dir="/z/walrus/media/pictures/metaverse/fallout_76/${character}" + +#echo "src is: '$src_dir'" +#echo "dest is: '$dest_dir'" + +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"/ +