From 1e9f60db25ae4f03f2cdd31b9076f18d955da2db Mon Sep 17 00:00:00 2001 From: Alessio Date: Sun, 12 Dec 2021 20:10:38 -0800 Subject: [PATCH] Fix permission error with version bump test task in CI build --- .build.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.build.yml b/.build.yml index 5cbb12b..f7a2f66 100644 --- a/.build.yml +++ b/.build.yml @@ -109,7 +109,7 @@ tasks: sudo apt install -y curl gnupg curl https://apt.playfulpachyderm.com/KEY.gpg | sudo apt-key add - - sudo echo "deb https://apt.playfulpachyderm.com/ ./" > /etc/apt/sources.list.d/offline_twitter.list + echo "deb https://apt.playfulpachyderm.com/ ./" | sudo tee /etc/apt/sources.list.d/offline_twitter.list sudo apt update sudo apt install -y offline-twitter-engine # Latest released version @@ -123,9 +123,8 @@ tasks: twitter get_user_tweets michaelmalice # Now test the upgrade using the newer version - cd .. # Now in `cmd` directory - which ./tw # Should be here from previous step - tw fetch_user michaelmalice # Any operation other than `create_profile` should trigger the upgrade + which ../tw # Should be here from previous step + ../tw --profile outdated_profile fetch_user michaelmalice # Any operation other than `create_profile` should trigger the upgrade duration=$SECONDS echo "Task completed in $(($duration / 60))m$(($duration % 60))s."